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/APT.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/APT.py')
-rw-r--r-- | src/lib/Client/Tools/APT.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/APT.py b/src/lib/Client/Tools/APT.py index 308f157d8..a3b56a154 100644 --- a/src/lib/Client/Tools/APT.py +++ b/src/lib/Client/Tools/APT.py @@ -86,7 +86,8 @@ class APT(Bcfg2.Client.Tools.PkgTool): if len(packages) > 0: self.logger.info('Removing packages:') self.logger.info(pkgnames) - self.cmd.run("apt-get remove -y --force-yes %s" % pkgnames) + if self.cmd.run("apt-get remove -y --force-yes %s" % pkgnames)[0] == 0: + self.modified += packages self.RefreshPackages() self.extra = self.FindExtraPackages() |