diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-27 01:34:45 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-27 01:34:45 +0000 |
commit | bef7adca2083020a103eee4baf6fadc4c4537344 (patch) | |
tree | 7957de00211f53decc08567aa1ee440bd0b9fb26 /src/lib/Client/Tools/RPM.py | |
parent | 05e6ee19d2d6e3bc5491a690c78fdb611b3d6a57 (diff) | |
download | bcfg2-bef7adca2083020a103eee4baf6fadc4c4537344.tar.gz bcfg2-bef7adca2083020a103eee4baf6fadc4c4537344.tar.bz2 bcfg2-bef7adca2083020a103eee4baf6fadc4c4537344.zip |
Make reinventory contingent on configuration activity (Resolves Ticket #280)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2546 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/RPM.py')
-rw-r--r-- | src/lib/Client/Tools/RPM.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/RPM.py b/src/lib/Client/Tools/RPM.py index efdd05a90..31a771c29 100644 --- a/src/lib/Client/Tools/RPM.py +++ b/src/lib/Client/Tools/RPM.py @@ -79,6 +79,7 @@ class RPM(Bcfg2.Client.Tools.PkgTool): 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)) + if self.cmd.run("rpm --quiet -e --allmatches %s" % " ".join(pkgnames))[0] == 0: + self.modified += packages self.RefreshPackages() self.extra = self.FindExtraPackages() |