summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-06-14 21:29:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-06-14 21:29:03 +0000
commitba05afac4c276ed46f28efc331d9b33ef5920a6d (patch)
treebe845670d416264ed95413cca26cef9343584edd /src
parentf5f4a4081d4eda0b839fb36d8fff8fbb9c8cfc89 (diff)
downloadbcfg2-ba05afac4c276ed46f28efc331d9b33ef5920a6d.tar.gz
bcfg2-ba05afac4c276ed46f28efc331d9b33ef5920a6d.tar.bz2
bcfg2-ba05afac4c276ed46f28efc331d9b33ef5920a6d.zip
Updates from rpmng and yumng from mbrady
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3310 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/RPMng.py3
-rw-r--r--src/lib/Client/Tools/YUMng.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py
index 9e068dd6f..fa9f4ad94 100644
--- a/src/lib/Client/Tools/RPMng.py
+++ b/src/lib/Client/Tools/RPMng.py
@@ -670,7 +670,8 @@ class RPMng(Bcfg2.Client.Tools.PkgTool):
if not self.setup['kevlar']:
for pkg_entry in packages:
self.logger.debug("Reverifying Failed Package %s" % (pkg_entry.get('name')))
- self.states[pkg_entry] = self.VerifyPackage(pkg_entry, self.modlists[pkg_entry])
+ self.states[pkg_entry] = self.VerifyPackage(pkg_entry, \
+ self.modlists.get(pkg_entry, []))
for entry in [ent for ent in packages if self.states[ent]]:
self.modified.append(entry)
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index f047832c0..17f75c8d1 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -237,7 +237,8 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
if not self.setup['kevlar']:
for pkg_entry in packages:
self.logger.debug("Reverifying Failed Package %s" % (pkg_entry.get('name')))
- self.states[pkg_entry] = self.VerifyPackage(pkg_entry, self.modlists[pkg_entry])
+ self.states[pkg_entry] = self.VerifyPackage(pkg_entry, \
+ self.modlists.get(pkg_entry, []))
for entry in [ent for ent in packages if self.states[ent]]:
self.modified.append(entry)