diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/__init__.py | 7 |
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''' |