diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-23 13:51:33 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-23 13:51:33 +0000 |
commit | c44c69fc0d288c4674ddef02d25b10ecb461385b (patch) | |
tree | 1e469ebc7615c1378a4cbfdeddd5f415a412cdc7 /src | |
parent | 7d8dff6d77802e4a8ecda775cae5aa9b6e75740f (diff) | |
download | bcfg2-c44c69fc0d288c4674ddef02d25b10ecb461385b.tar.gz bcfg2-c44c69fc0d288c4674ddef02d25b10ecb461385b.tar.bz2 bcfg2-c44c69fc0d288c4674ddef02d25b10ecb461385b.zip |
Fix APT driver to display package names upon removal (Resolves Ticket #285)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2532 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Tools/APT.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index 6d8e38a7a..cedec7a60 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -63,11 +63,11 @@ class APT(Bcfg2.Client.Tools.PkgTool): def RemovePackages(self, packages): '''Deal with extra configuration detected''' + pkgnames = " ".join([pkg.get('name') for pkg in packages]) if len(packages) > 0: self.logger.info('Removing packages:') - self.logger.info(packages) - self.cmd.run("apt-get remove -y --force-yes %s" % \ - " ".join([pkg.get('name') for pkg in packages])) + self.logger.info(pkgnames) + self.cmd.run("apt-get remove -y --force-yes %s" % pkgnames) self.RefreshPackages() self.extra = self.FindExtraPackages() |