summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-11-30 23:02:50 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-11-30 23:02:50 +0000
commiteddb9900f0f6804e0d52c32b0a8cab2bc67096b4 (patch)
tree5ac05a17b103e0a3875b182dd9e2360b13e0b915 /src/lib/Server
parente6fe91ea75284010024928200412f017c54ae005 (diff)
downloadbcfg2-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.py5
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]