diff options
author | Bill Nottingham <notting@redhat.com> | 2008-03-27 14:01:44 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-03-27 14:01:44 -0400 |
commit | 1b305e2134ef0e14f8006757b05e14f7e8e290f1 (patch) | |
tree | 334c9dec835175d0fc0a34fc105ff4324c3a7a64 | |
parent | 553ec4d717c73c43c24071fad93366ab7abe62a2 (diff) | |
parent | 9d92f7edc5a8167b92626efbb8494f924c69f9a8 (diff) | |
download | anaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.tar.gz anaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.tar.xz anaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/anaconda
-rwxr-xr-x | anaconda | 5 | ||||
-rw-r--r-- | iw/autopart_type.py | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -675,6 +675,11 @@ if __name__ == "__main__": if opts.method[0] == '@': expandFTPMethod(opts) + # FIXME: this is terrible, but it gets the desired behavior without + # requiring scary loader changes at this point + if flags.cmdline.has_key("stage2") and flags.cmdline.has_key("method"): + opts.method = flags.cmdline["method"] + anaconda.setMethodstr(opts.method) if opts.module: diff --git a/iw/autopart_type.py b/iw/autopart_type.py index 81393cd9b..fba6432bc 100644 --- a/iw/autopart_type.py +++ b/iw/autopart_type.py @@ -83,8 +83,10 @@ def whichToResize(partitions, diskset, intf): if req.targetSize is not None: combo.set_active_iter(i) found = True - if biggest < 0 or req.size > getActive(combo).size: - biggest = i + else: + if biggest < 0 or req.size > store.get_value(biggest, 1).size: + biggest = i + if not found and biggest > 0: combo.set_active_iter(biggest) |