diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-02-15 17:01:37 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-02-15 17:01:37 +0000 |
commit | 1db709a17f6e17d2bf651f330dd649110368fd11 (patch) | |
tree | 40ac3430a51bcb59a99f530b1cce3888394124b1 | |
parent | b1686eb72e5c96393ec1fb79e971fe9655ef0e1d (diff) | |
download | bcfg2-1db709a17f6e17d2bf651f330dd649110368fd11.tar.gz bcfg2-1db709a17f6e17d2bf651f330dd649110368fd11.tar.bz2 bcfg2-1db709a17f6e17d2bf651f330dd649110368fd11.zip |
Add noverify version support to Yum
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2814 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Tools/Yum.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Yum.py b/src/lib/Client/Tools/Yum.py index b21ef3a25..65e664a6d 100644 --- a/src/lib/Client/Tools/Yum.py +++ b/src/lib/Client/Tools/Yum.py @@ -40,3 +40,8 @@ class Yum(Bcfg2.Client.Tools.RPM.RPM): self.modified += packages self.RefreshPackages() self.extra = self.FindExtraPackages() + + def VerifyPackage(self, entry, modlist): + if entry.get('version') == 'noverify': + return self.installed.has_key(entry.get('name')) + return Bcfg2.Client.Tools.RPM.RPM.VerifyPackage(self, entry, modlist) |