summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-01-15 23:18:00 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-01-15 23:18:00 +0000
commit24f6028b2f55331901e11fa899af3644ef56a0c2 (patch)
treeee5f32b0b4f376a0c279e690d287ec10d37cf64e /src
parent8d5219923c6fecdfaa07530bb4946eb997244412 (diff)
downloadbcfg2-24f6028b2f55331901e11fa899af3644ef56a0c2.tar.gz
bcfg2-24f6028b2f55331901e11fa899af3644ef56a0c2.tar.bz2
bcfg2-24f6028b2f55331901e11fa899af3644ef56a0c2.zip
Add version information for extra packages that use the PkgTool.FindExtraPackages method
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2675 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 762728eae..1f1ee38b5 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -234,9 +234,10 @@ class PkgTool(Tool):
def FindExtraPackages(self):
'''Find extra packages'''
packages = [entry.get('name') for entry in self.getSupportedEntries()]
- extras = [key for key in self.installed if key not in packages]
- return [Bcfg2.Client.XML.Element('Package', name=name, type=self.pkgtype) \
- for name in extras]
+ extras = [data for data in self.installed.iteritems() if data[0] not in packages]
+ return [Bcfg2.Client.XML.Element('Package', name=name, \
+ type=self.pkgtype, version=version) \
+ for (name, version) in extras]
class SvcTool(Tool):
'''This class defines basic Service behavior'''