summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-11-05 03:54:55 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-11-05 03:54:55 +0000
commit35bac7c7a1c023f0dbda7a43e647a0372f669a76 (patch)
tree891f98d768e0816e60574d1e191c82bdcffd3b22 /src/lib/Client/Tools
parentcb21a4d2696891bb290b53980664d5a1f8d73fe0 (diff)
downloadbcfg2-35bac7c7a1c023f0dbda7a43e647a0372f669a76.tar.gz
bcfg2-35bac7c7a1c023f0dbda7a43e647a0372f669a76.tar.bz2
bcfg2-35bac7c7a1c023f0dbda7a43e647a0372f669a76.zip
Gentoo: Fix RemovePackages() so that packages can be removed
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5526 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r--src/lib/Client/Tools/Portage.py7
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()
-
-