summaryrefslogtreecommitdiffstats
path: root/tools/rpmlisting.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-04 09:24:37 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-06 19:35:21 -0500
commit8f4a2394638912b000682e2211723e4a644915e1 (patch)
treedcc8bfe8939154ade2c2f4be99758f0f441698d4 /tools/rpmlisting.py
parent50d489f38e18577cb7e75605515d4b8d567aaa52 (diff)
downloadbcfg2-8f4a2394638912b000682e2211723e4a644915e1.tar.gz
bcfg2-8f4a2394638912b000682e2211723e4a644915e1.tar.bz2
bcfg2-8f4a2394638912b000682e2211723e4a644915e1.zip
tools: Fixes from a second 2to3 run
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools/rpmlisting.py')
-rw-r--r--tools/rpmlisting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rpmlisting.py b/tools/rpmlisting.py
index afc9ebed5..141cae172 100644
--- a/tools/rpmlisting.py
+++ b/tools/rpmlisting.py
@@ -150,7 +150,7 @@ def parse_rpm_filename(path, filename):
(blob, subarch, extension) = (rblob[::-1], rsubarch[::-1], rextension[::-1])
(rrelease, rversion, rname) = blob[::-1].split('-', 2)
(name, version, release) = (rname[::-1], rversion[::-1], rrelease[::-1])
- if subarch not in subarch_mapping.keys():
+ if subarch not in list(subarch_mapping.keys()):
raise "%s/%s has invalid subarch %s." % (path, filename, subarch)
except:
# for incorrectly named rpms (ie, sun's java rpms) we fall back to reading the rpm headers.