diff options
author | Brian C. Lane <bcl@redhat.com> | 2012-06-20 15:34:11 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2012-06-20 15:34:11 -0700 |
commit | 7e1b1abc04a7dde1a4153d5e61bf0207f77d583c (patch) | |
tree | 5a184496f757df6a61c5fd423667b94ecdb04859 /pyanaconda/installclass.py | |
parent | cbebb0210fba5ed5e74e01715f832d5e5929a8d5 (diff) | |
parent | 11b3901231af7e8f57aa362873d5d18caee14386 (diff) | |
download | anaconda-7e1b1abc04a7dde1a4153d5e61bf0207f77d583c.tar.gz anaconda-7e1b1abc04a7dde1a4153d5e61bf0207f77d583c.tar.xz anaconda-7e1b1abc04a7dde1a4153d5e61bf0207f77d583c.zip |
Merge branch 'master' into newui-merge
Conflicts:
Makefile.am
anaconda
anaconda.spec.in
loader/loader.c
loader/net.c
loader/unpack.c
po/POTFILES.in
pyanaconda/__init__.py
pyanaconda/bootloader.py
pyanaconda/cmdline.py
pyanaconda/constants.py
pyanaconda/dispatch.py
pyanaconda/errors.py
pyanaconda/flags.py
pyanaconda/iutil.py
pyanaconda/kickstart.py
pyanaconda/platform.py
pyanaconda/storage/__init__.py
pyanaconda/storage/devicetree.py
pyanaconda/storage/fcoe.py
pyanaconda/storage/formats/swap.py
pyanaconda/storage/iscsi.py
pyanaconda/storage/partitioning.py
pyanaconda/yuminstall.py
scripts/makeupdates
Diffstat (limited to 'pyanaconda/installclass.py')
-rw-r--r-- | pyanaconda/installclass.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py index 75a039853..144df917b 100644 --- a/pyanaconda/installclass.py +++ b/pyanaconda/installclass.py @@ -84,7 +84,6 @@ class BaseInstallClass(object): def setSteps(self, anaconda): dispatch = anaconda.dispatch dispatch.schedule_steps( - "sshd", "language", "keyboard", "filtertype", @@ -172,10 +171,10 @@ class BaseInstallClass(object): def setDefaultPartitioning(self, storage, platform): autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType, size=1024, maxSize=50*1024, grow=True, - asVol=True, encrypted=True), + btr=True, lv=True, encrypted=True), PartSpec(mountpoint="/home", fstype=storage.defaultFSType, size=500, grow=True, requiredSpace=50*1024, - asVol=True, encrypted=True)] + btr=True, lv=True, encrypted=True)] bootreq = platform.setDefaultPartitioning() if bootreq: @@ -183,7 +182,7 @@ class BaseInstallClass(object): (minswap, maxswap) = iutil.swapSuggestion() autorequests.append(PartSpec(fstype="swap", size=minswap, maxSize=maxswap, - grow=True, asVol=True, encrypted=True)) + grow=True, lv=True, encrypted=True)) storage.autoPartitionRequests = autorequests @@ -198,6 +197,11 @@ class BaseInstallClass(object): pass def productUpgradable(self, arch, oldprod, oldver): + """ Return a tuple with: + (Upgradable True|False, dict of tests and status) + + The dict has True|False for: product, version, arch tests. + """ def archesEq(a, b): import re @@ -206,7 +210,12 @@ class BaseInstallClass(object): else: return a == b - return self.productMatches(oldprod) and self.versionMatches(oldver) and archesEq(arch, productArch) + result = { "product" : self.productMatches(oldprod), + "version" : self.versionMatches(oldver), + "arch" : archesEq(arch, productArch) + } + + return (all(result.values()), result) def setNetworkOnbootDefault(self, network): pass |