diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-11-30 23:02:50 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-11-30 23:02:50 +0000 |
commit | eddb9900f0f6804e0d52c32b0a8cab2bc67096b4 (patch) | |
tree | 5ac05a17b103e0a3875b182dd9e2360b13e0b915 /src/lib/Server | |
parent | e6fe91ea75284010024928200412f017c54ae005 (diff) | |
download | bcfg2-eddb9900f0f6804e0d52c32b0a8cab2bc67096b4.tar.gz bcfg2-eddb9900f0f6804e0d52c32b0a8cab2bc67096b4.tar.bz2 bcfg2-eddb9900f0f6804e0d52c32b0a8cab2bc67096b4.zip |
host specific package lists
(Logical change 1.154)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@684 ce84e21b-d406-0410-9b95-82705330c041
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] |