summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-04-11 16:45:35 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-04-11 16:45:35 +0000
commit74a93ea79f568b61e17c0eddf519c895bcdb249e (patch)
tree6f118b4802bc75cc5fd0b974d7e4ad33e6e4e5ff /src/lib
parent1b18110a1df54b38a6fa5062ad025c19b33e6014 (diff)
downloadbcfg2-74a93ea79f568b61e17c0eddf519c895bcdb249e.tar.gz
bcfg2-74a93ea79f568b61e17c0eddf519c895bcdb249e.tar.bz2
bcfg2-74a93ea79f568b61e17c0eddf519c895bcdb249e.zip
schema update
pkgmgr bugfix git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1835 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index a322af0d0..a009e2910 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -31,7 +31,7 @@ class PNode(Bcfg2.Server.Plugin.INode):
else:
if pkg.attrib.has_key('file'):
pkg.set('url', '%s/%s' % (pkg.get('uri'), pkg.get('file')))
- if self.splitters.has_key(pkg.get('type')):
+ if self.splitters.has_key(pkg.get('type')) and pkg.get('file') != None:
mdata = self.splitters[pkg.get('type')].match(pkg.get('file'))
if not mdata:
logger.error("Failed to match pkg %s" % pkg.get('file'))