diff options
author | Matt Wilson <msw@redhat.com> | 2000-08-15 20:21:45 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-08-15 20:21:45 +0000 |
commit | 16f262155c829ecb8cfd79cd52b1c2e6bb1eb857 (patch) | |
tree | d6e58616093f7de6c9da0b4f50b9f99bdb626fb6 /comps.py | |
parent | df3f0e585f2639ead687860c217e945acbcf29d7 (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |