diff options
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r-- | src/lib/Client/Tools/Portage.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Client/Tools/Portage.py b/src/lib/Client/Tools/Portage.py index f5224c06a..9dc9df8ff 100644 --- a/src/lib/Client/Tools/Portage.py +++ b/src/lib/Client/Tools/Portage.py @@ -60,11 +60,10 @@ class Portage(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("emerge --unmerge --quiet =%s" % " =".join(packages)) + self.logger.info(pkgnames) + self.cmd.run("emerge --unmerge --quiet %s" % " ".join(pkgnames.split(' '))) self.RefreshPackages() self.extra = self.FindExtraPackages() - - |