summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-15 17:01:37 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-15 17:01:37 +0000
commit1db709a17f6e17d2bf651f330dd649110368fd11 (patch)
tree40ac3430a51bcb59a99f530b1cce3888394124b1 /src
parentb1686eb72e5c96393ec1fb79e971fe9655ef0e1d (diff)
downloadbcfg2-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
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/Yum.py5
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)