diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Client/Tools/RPMng.py | 4 | ||||
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py index c978d7060..d36a10737 100644 --- a/src/lib/Client/Tools/RPMng.py +++ b/src/lib/Client/Tools/RPMng.py @@ -177,7 +177,7 @@ class RPMng(Bcfg2.Client.Tools.PkgTool): self.instance_status[inst]['installed'] = True if self.pkg_verify == 'true' and \ - inst.get('pkg_checks', 'true') == 'true': + inst.get('pkg_verify', 'true') == 'true': flags = inst.get('verify_flags', '').split(',') if pkg.get('gpgkeyid', '')[-8:] not in self.gpg_keyids and \ entry.get('name') != 'gpg-pubkey': @@ -232,7 +232,7 @@ class RPMng(Bcfg2.Client.Tools.PkgTool): self.instance_status[inst]['installed'] = True if self.pkg_verify == 'true' and \ - inst.get('pkg_checks', 'true') == 'true': + inst.get('pkg_verify', 'true') == 'true': flags = inst.get('verify_flags', '').split(',') if pkg.get('gpgkeyid', '')[-8:] not in self.gpg_keyids: flags += ['nosignature', 'nodigest'] diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index 37e70b378..c6edac6b8 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -332,8 +332,11 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng): pkg_arg = pkg_arg + '.' + inst.get('arch') erase_args.append(pkg_arg) else: + pkgspec = { 'name':pkg.get('name'), + 'version':inst.get('version'), + 'release':inst.get('release')} self.logger.info("WARNING: gpg-pubkey package not in configuration %s %s"\ - % (pkg.get('name'), self.str_evra(pkg))) + % (pkgspec.get('name'), self.str_evra(pkgspec))) self.logger.info(" This package will be deleted in a future version of the RPMng driver.") cmdrc, output = self.cmd.run(pkgtool % " ".join(erase_args)) |