summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-15 20:21:45 +0000
committerMatt Wilson <msw@redhat.com>2000-08-15 20:21:45 +0000
commit16f262155c829ecb8cfd79cd52b1c2e6bb1eb857 (patch)
treed6e58616093f7de6c9da0b4f50b9f99bdb626fb6 /comps.py
parentdf3f0e585f2639ead687860c217e945acbcf29d7 (diff)
downloadanaconda-16f262155c829ecb8cfd79cd52b1c2e6bb1eb857.tar.gz
anaconda-16f262155c829ecb8cfd79cd52b1c2e6bb1eb857.tar.xz
anaconda-16f262155c829ecb8cfd79cd52b1c2e6bb1eb857.zip
a little error checking when reading in the header list
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/comps.py b/comps.py
index 1334c0ed3..48bc0d158 100644
--- a/comps.py
+++ b/comps.py
@@ -120,6 +120,10 @@ class HeaderList:
newCompat.append(Package(h))
else:
self.packages[name] = Package(h)
+ if hdlist and not self.packages:
+ raise RuntimeError, ("the header list was read, but no packages "
+ "matching this architecture were found for "
+ "architecture '%s'." % os.uname()[4])
if compatPackages != None:
# don't use list + here, as it creates a new object