summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-09-09 21:15:05 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-09-09 21:15:05 +0000
commit4a00d1fda1878c846efc8c2670caccefd224ba38 (patch)
treeff26d9db4627f12eb49fd068cf8d9fb160bc31b7 /src/lib
parent0e7a8717dd97ecb12e7717307cad002ec4d87778 (diff)
downloadbcfg2-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.py4
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)