diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-01-10 22:43:27 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-01-10 22:43:27 +0000 |
commit | db4a1e7b0cbbfde5b85a728f4eeab7b06015fcc0 (patch) | |
tree | d7f11724c6689e180d2978b807d8c640b2384b9c /installclass.py | |
parent | 28cd82fc8efd3c782c4dd361339c2b6b1c36d842 (diff) | |
download | anaconda-db4a1e7b0cbbfde5b85a728f4eeab7b06015fcc0.tar.gz anaconda-db4a1e7b0cbbfde5b85a728f4eeab7b06015fcc0.tar.xz anaconda-db4a1e7b0cbbfde5b85a728f4eeab7b06015fcc0.zip |
2005-01-10 Jeremy Katz <katzj@redhat.com>
* installclass.py (BaseInstallClass.setSteps): Allow install
classes to turn off showing upgrade as an option (only really
applicable if you only have one install class)
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py index 1e9685f46..622e25c68 100644 --- a/installclass.py +++ b/installclass.py @@ -36,6 +36,8 @@ class BaseInstallClass: description = None name = "base" pkgstext = "" + # default to showing the upgrade option + showUpgrade = 1 # pkgstext = _("\tDesktop shell (GNOME)\n" # "\tOffice suite (OpenOffice)\n" @@ -187,6 +189,10 @@ class BaseInstallClass: if iutil.getArch() != "i386" and iutil.getArch() != "x86_64": dispatch.skipStep("bootloader") + # allow install classes to turn off the upgrade + if self.showUpgrade == 0: + dispatch.skipStep("findrootparts", skip = 1) + # 'noupgrade' can be used on the command line to force not looking # for partitions to upgrade. useful in some cases... cmdline = open("/proc/cmdline", "r").read() |