diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-10-24 21:22:15 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-10-24 21:22:15 +0000 |
commit | 1c48013bc8e520983b2ab212c59e796897730232 (patch) | |
tree | 00fd0bae0ba5d7b7064d1376d63e205da73ba6ac /src/lib/Server/Plugins/Pkgmgr.py | |
parent | fb06a93c9efbfbc08d8dcf6488aced8b2f9f889b (diff) | |
download | bcfg2-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.py | 7 |
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) |