diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-09-28 09:04:41 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-09-28 09:04:41 +0000 |
commit | 01f103ce62342831afb5efc9f9e4bc07c1c06b15 (patch) | |
tree | 2f38328dfdce3d2b32b79d850b5525562a96fe2d /src/lib/Client/Tools | |
parent | f69841e038ec81a98f6b3bf870b7ee4ad0e4a5af (diff) | |
download | bcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.tar.gz bcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.tar.bz2 bcfg2-01f103ce62342831afb5efc9f9e4bc07c1c06b15.zip |
YUMng: Fix bulk package removal backtrace (Resolves Ticket #749)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5467 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r-- | src/lib/Client/Tools/YUMng.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py index 3adcce742..4c295de62 100644 --- a/src/lib/Client/Tools/YUMng.py +++ b/src/lib/Client/Tools/YUMng.py @@ -338,7 +338,7 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng): for inst in pkg: if pkg.get('name') != 'gpg-pubkey': pkg_arg = pkg.get('name') + '-' - if inst.haskey('epoch'): + if inst.attrib.has_key('epoch'): pkg_arg = pkg_arg + inst.get('epoch') + ':' pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release') if 'arch' in inst.attrib: |