diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-09-09 21:15:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-09-09 21:15:05 +0000 |
commit | 4a00d1fda1878c846efc8c2670caccefd224ba38 (patch) | |
tree | ff26d9db4627f12eb49fd068cf8d9fb160bc31b7 /src/lib | |
parent | 0e7a8717dd97ecb12e7717307cad002ec4d87778 (diff) | |
download | bcfg2-4a00d1fda1878c846efc8c2670caccefd224ba38.tar.gz bcfg2-4a00d1fda1878c846efc8c2670caccefd224ba38.tar.bz2 bcfg2-4a00d1fda1878c846efc8c2670caccefd224ba38.zip |
fix non redhat pkglists
(Logical change 1.59)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@327 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Generators/pkgmgr.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/pkgmgr.py b/src/lib/Server/Generators/pkgmgr.py index ad88a00b3..4ee56c0ba 100644 --- a/src/lib/Server/Generators/pkgmgr.py +++ b/src/lib/Server/Generators/pkgmgr.py @@ -47,7 +47,9 @@ class pkgmgr(Generator): pl = self.pkgdir["%s.xml"%(metadata.image)] if pl.packages.has_key(pkgname): p = pl.packages[pkgname] - if p['type'] == 'rpm': + if p.get('type', None) == 'rpm': entry.attrib.update({'url':"%s/%s"%(p['uri'],p['file']), 'version':p['version']}) + else: + entry.attrib.update(p) else: raise KeyError, ("Package", name) |