Implemented option to skip packages selection in installclass

This commit is contained in:
Tomasz Sterna 2011-03-31 18:25:48 +02:00
parent 4aa7924af7
commit 9bb56a32e9

View File

@ -51,7 +51,8 @@ class BaseInstallClass(object):
_descriptionFields = () _descriptionFields = ()
name = "base" name = "base"
pkgstext = "" pkgstext = ""
# default to showing the upgrade option # default to showing the packages selection and upgrade options
showPackageSelection = True
showUpgrade = True showUpgrade = True
bootloaderTimeoutDefault = None bootloaderTimeoutDefault = None
@ -128,7 +129,7 @@ class BaseInstallClass(object):
dispatch.skipStep("bootloader", permanent=1) dispatch.skipStep("bootloader", permanent=1)
# allow backends to disable interactive package selection # allow backends to disable interactive package selection
if not anaconda.backend.supportsPackageSelection: if not self.showPackageSelection or not anaconda.backend.supportsPackageSelection:
dispatch.skipStep("tasksel", skip = 1, permanent=1) dispatch.skipStep("tasksel", skip = 1, permanent=1)
dispatch.skipStep("group-selection", skip = 1, permanent=1) dispatch.skipStep("group-selection", skip = 1, permanent=1)