diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-01-11 21:02:41 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-01-11 21:02:41 +0000 |
commit | 8b305cc3104d992b1a3449b82eacddb8f2f9b628 (patch) | |
tree | 5585b1206508257478b7f5efb95d9e6aaf1ddea9 /packages.py | |
parent | 413ec31f2ad4f50c574af12094a8ecad3cf1dae5 (diff) | |
download | anaconda-8b305cc3104d992b1a3449b82eacddb8f2f9b628.tar.gz anaconda-8b305cc3104d992b1a3449b82eacddb8f2f9b628.tar.xz anaconda-8b305cc3104d992b1a3449b82eacddb8f2f9b628.zip |
2005-01-11 Jeremy Katz <katzj@redhat.com>
* packages.py (readPackages): Ensure that the Core group exists in
the comps file (#143930)
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages.py b/packages.py index b60399724..2b3fe9cde 100644 --- a/packages.py +++ b/packages.py @@ -178,6 +178,19 @@ def readPackages(intf, method, id): "Press <return> to try again.")) continue + # people make bad tree copies all the time. let's just mandate that + # the Core group has to exist in the comps file else we complain + if not grpset.groups.has_key("core"): + intf.messageWindow(_("Error"), + _("The comps file in your installation tree is " + "missing critical groups. Please ensure that " + "your install tree has been correctly " + "generated."), + type="custom", custom_icon="error", + custom_buttons=[_("_Exit")]) + sys.exit(0) + + # this is a crappy hack, but I don't want bug reports from these people if (iutil.getArch() == "i386") and (not grpset.hdrlist.has_key("kernel")): intf.messageWindow(_("Error"), |