diff options
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Generators/Pkgmgr.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Server/Generators/Pkgmgr.py b/src/lib/Server/Generators/Pkgmgr.py index 63e65970d..eee1528c1 100644 --- a/src/lib/Server/Generators/Pkgmgr.py +++ b/src/lib/Server/Generators/Pkgmgr.py @@ -52,6 +52,11 @@ class Pkgmgr(Generator): def LocatePackage(self, entry, metadata): '''Locates a package entry for particular metadata''' pkgname = entry.get('name') + if self.pkgdir.has_key("%s.xml" % metadata.hostname): + pkglist = self.pkgdir["%s.xml" % metadata.hostname] + if pkglist.packages.has_key(pkgname): + entry.attrib.update(pkglist.packages[pkgname]) + return pkglist = self.pkgdir["%s.xml" % (metadata.image)] if pkglist.packages.has_key(pkgname): pkg = pkglist.packages[pkgname] |