diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-23 01:13:13 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-23 01:13:13 +0000 |
commit | db032e946c96d09841eeab7c549fee1497c615d7 (patch) | |
tree | 93f2d13ed687afabf9de31b0e9d36521d9cb07a9 /src/lib/Client/Tools/RPM.py | |
parent | c75deeb47e2a50636c7db903978ffeef2b2babfc (diff) | |
download | bcfg2-db032e946c96d09841eeab7c549fee1497c615d7.tar.gz bcfg2-db032e946c96d09841eeab7c549fee1497c615d7.tar.bz2 bcfg2-db032e946c96d09841eeab7c549fee1497c615d7.zip |
Fix package removal [report from naapuri]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2530 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/RPM.py')
-rw-r--r-- | src/lib/Client/Tools/RPM.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/RPM.py b/src/lib/Client/Tools/RPM.py index 3a3d1b7e4..efdd05a90 100644 --- a/src/lib/Client/Tools/RPM.py +++ b/src/lib/Client/Tools/RPM.py @@ -74,9 +74,9 @@ class RPM(Bcfg2.Client.Tools.PkgTool): return False return True - def RemovePackages(self, entries): + def RemovePackages(self, packages): '''Remove specified entries''' - pkgnames = " ".join([entry[2] for entry in entries]) + pkgnames = [pkg.get('name') for pkg in packages] if len(pkgnames) > 0: self.logger.info("Removing packages: %s" % pkgnames) self.cmd.run("rpm --quiet -e --allmatches %s" % " ".join(pkgnames)) |