diff options
author | Chris Lumens <clumens@redhat.com> | 2008-12-04 17:27:51 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-12-04 17:29:54 -0500 |
commit | b0c758ba7a27d48c496a5c66a0e6d4932217da85 (patch) | |
tree | 65d70b0d57b5d1020af70743552a1617eecef6c8 | |
parent | c42e68c9d919f65e4e7159e17be759cfbfa02d15 (diff) | |
download | anaconda-b0c758ba7a27d48c496a5c66a0e6d4932217da85.tar.gz anaconda-b0c758ba7a27d48c496a5c66a0e6d4932217da85.tar.xz anaconda-b0c758ba7a27d48c496a5c66a0e6d4932217da85.zip |
Add a button to the UI to ignore all missing packages.
Kickstart syntax already allows this on the %packages header, so add a
button to make the UI act the same way.
-rw-r--r-- | kickstart.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kickstart.py b/kickstart.py index ef9488bdd..4d70d5195 100644 --- a/kickstart.py +++ b/kickstart.py @@ -1088,6 +1088,7 @@ def runTracebackScripts(anaconda): def selectPackages(anaconda): ksdata = anaconda.id.ksdata + ignoreAll = False # If no %packages header was seen, use the installclass's default group # selections. This can also be explicitly specified with %packages @@ -1098,7 +1099,7 @@ def selectPackages(anaconda): for pkg in ksdata.packages.packageList: num = anaconda.backend.selectPackage(pkg) - if ksdata.packages.handleMissing == KS_MISSING_IGNORE: + if ksdata.packages.handleMissing == KS_MISSING_IGNORE or ignoreAll: continue if num > 0: continue @@ -1110,11 +1111,12 @@ def selectPackages(anaconda): "abort your installation?") %(pkg,), type="custom", custom_buttons=[_("_Abort"), + _("_Ignore All"), _("_Continue")]) if rc == 0: sys.exit(1) - else: - pass + elif rc == 1: + ignoreAll = True anaconda.backend.selectGroup("Core") @@ -1136,7 +1138,7 @@ def selectPackages(anaconda): try: anaconda.backend.selectGroup(grp.name, (default, optional)) except NoSuchGroup, e: - if ksdata.packages.handleMissing == KS_MISSING_IGNORE: + if ksdata.packages.handleMissing == KS_MISSING_IGNORE or ignoreAll: pass else: rc = anaconda.intf.messageWindow(_("Missing Group"), @@ -1148,11 +1150,12 @@ def selectPackages(anaconda): %(grp.name,), type="custom", custom_buttons=[_("_Abort"), + _("_Ignore All"), _("_Continue")]) if rc == 0: sys.exit(1) - else: - pass + elif rc == 1: + ignoreAll = True map(anaconda.backend.deselectPackage, ksdata.packages.excludedList) |