summaryrefslogtreecommitdiffstats
path: root/tools/pkgmgr_update.py
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2008-12-22 04:09:48 +0000
committerSol Jerome <solj@ices.utexas.edu>2008-12-22 04:09:48 +0000
commite3fb140c8d44d751766535eedefcc4ada6544bd1 (patch)
tree9cfe7aa923ec2b1f2e17df1ced892508987b9a6f /tools/pkgmgr_update.py
parent5ab6c7a56e1cb16fee6b04a2b74e615f8f4c557e (diff)
downloadbcfg2-e3fb140c8d44d751766535eedefcc4ada6544bd1.tar.gz
bcfg2-e3fb140c8d44d751766535eedefcc4ada6544bd1.tar.bz2
bcfg2-e3fb140c8d44d751766535eedefcc4ada6544bd1.zip
Update dictionary accesses to work with Python 3.0
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/pkgmgr_update.py')
-rwxr-xr-xtools/pkgmgr_update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pkgmgr_update.py b/tools/pkgmgr_update.py
index 57c92452b..9f7a1fa98 100755
--- a/tools/pkgmgr_update.py
+++ b/tools/pkgmgr_update.py
@@ -239,8 +239,8 @@ def updatepkg(pkg):
if name not in installOnlyPkgs:
for inst in [inst for inst in pkg if inst.tag == 'Instance']:
arch = inst.get('arch')
- if package_dict.has_key(name):
- if package_dict[name].has_key(arch):
+ if name in package_dict:
+ if arch in package_dict[name]:
package_dict[name][arch].sort(cmpRpmHeader)
latest = package_dict[name][arch][-1]
if cmpRpmHeader(inst, latest) == -1: