summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Generators/pkgmgr.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Generators/pkgmgr.py')
-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)