From 82d8aeb37212e1202f3dfe41b50592a026822318 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 13 Apr 2009 15:00:00 +0000 Subject: Fix YUMng -r behavior git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5159 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/YUMng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Client') diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index 71d2bf071..23ec4fb8d 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -344,7 +344,7 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng): if inst.haskey('epoch'): pkg_arg = pkg_arg + inst.get('epoch') + ':' pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release') - if inst.haskey('arch'): + if 'arch' in inst.attrib: pkg_arg = pkg_arg + '.' + inst.get('arch') else: self.logger.info("WARNING: gpg-pubkey package not in configuration %s %s"\ -- cgit v1.2.3-1-g7c22