summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Client/Tools/APT.py6
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()