summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-03-27 14:01:44 -0400
committerBill Nottingham <notting@redhat.com>2008-03-27 14:01:44 -0400
commit1b305e2134ef0e14f8006757b05e14f7e8e290f1 (patch)
tree334c9dec835175d0fc0a34fc105ff4324c3a7a64
parent553ec4d717c73c43c24071fad93366ab7abe62a2 (diff)
parent9d92f7edc5a8167b92626efbb8494f924c69f9a8 (diff)
downloadanaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.tar.gz
anaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.tar.xz
anaconda-1b305e2134ef0e14f8006757b05e14f7e8e290f1.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/anaconda
-rwxr-xr-xanaconda5
-rw-r--r--iw/autopart_type.py6
2 files changed, 9 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index 295a3ef90..e0095ee7c 100755
--- a/anaconda
+++ b/anaconda
@@ -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)