diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-11 22:39:17 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-11 22:39:17 +0000 |
commit | 3ff91c42292575c902586e151c793a9401751aa6 (patch) | |
tree | a62992684455e56614ffb2408c5a98d531496fdb /packages.py | |
parent | decf8a954dacd858460f79a2299b76d2bdda8295 (diff) | |
download | anaconda-3ff91c42292575c902586e151c793a9401751aa6.tar.gz anaconda-3ff91c42292575c902586e151c793a9401751aa6.tar.xz anaconda-3ff91c42292575c902586e151c793a9401751aa6.zip |
make sure there is a kernel package or tell them that they lose
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages.py b/packages.py index 9df6ce2a6..0c4aee932 100644 --- a/packages.py +++ b/packages.py @@ -26,6 +26,7 @@ import language import fsset import kudzu from flags import flags +from product import * from constants import * from syslogd import syslog from comps import PKGTYPE_MANDATORY, PKGTYPE_DEFAULT @@ -476,6 +477,15 @@ def doPreInstall(method, id, intf, instPath, dir): arch = iutil.getArch () + # this is a crappy hack, but I don't want bug reports from these people + if (arch == "i386") and (not hdList.has_key("kernel")): + intf.messageWindow(_("Error"), + _("You are trying to install on a machine " + "which isn't supported by this release of " + "%s.") %(productName,), + type = "error") + sys.exit(0) + # shorthand upgrade = id.upgrade.get() |