summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)