summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Pkgmgr.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-10-24 21:22:15 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-10-24 21:22:15 +0000
commit1c48013bc8e520983b2ab212c59e796897730232 (patch)
tree00fd0bae0ba5d7b7064d1376d63e205da73ba6ac /src/lib/Server/Plugins/Pkgmgr.py
parentfb06a93c9efbfbc08d8dcf6488aced8b2f9f889b (diff)
downloadbcfg2-1c48013bc8e520983b2ab212c59e796897730232.tar.gz
bcfg2-1c48013bc8e520983b2ab212c59e796897730232.tar.bz2
bcfg2-1c48013bc8e520983b2ab212c59e796897730232.zip
pylint fixes
(Logical change 1.343) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1413 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Pkgmgr.py')
-rw-r--r--src/lib/Server/Plugins/Pkgmgr.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Pkgmgr.py b/src/lib/Server/Plugins/Pkgmgr.py
index 2cd5597dc..8ee74dd68 100644
--- a/src/lib/Server/Plugins/Pkgmgr.py
+++ b/src/lib/Server/Plugins/Pkgmgr.py
@@ -10,9 +10,14 @@ from Bcfg2.Server.Plugin import Plugin, PluginInitError, PluginExecutionError, D
class PackageEntry(XMLFileBacked):
'''PackageEntry is a set of packages and locations for a single image'''
__identifier__ = 'image'
- splitters = {'rpm':regcompile('^(?P<name>[\w\+\d\.]+(-[\w\+\d\.]+)*)-(?P<version>[\w\d\.]+-([\w\d\.]+))\.(?P<arch>\w+)\.rpm$'),
+ splitters = {'rpm':regcompile('^(?P<name>[\w\+\d\.]+(-[\w\+\d\.]+)*)-' + \
+ '(?P<version>[\w\d\.]+-([\w\d\.]+))\.(?P<arch>\w+)\.rpm$'),
'encap':regcompile('^(?P<name>\w+)-(?P<version>[\w\d\.-]+).encap.*$')}
+ def __init__(self, filename):
+ XMLFileBacked.__init__(self, filename)
+ self.packages = {}
+
def Index(self):
'''Build internal data structures'''
XMLFileBacked.Index(self)