Skip to content

Commit d0cef83

Browse files
committed
rpmwatcher: make extract_deps compatible with both python2 and 3
Signed-off-by: Yann Dirson <[email protected]>
1 parent e1b6310 commit d0cef83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/rpmwatcher/rpmwatcher_extract_deps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717

1818
from __future__ import print_function
19+
1920
import argparse
2021
import subprocess
2122
import os
@@ -182,7 +183,7 @@ def main():
182183
# For every SRPM built by ourselves, get its build dependencies
183184
# We use our local RPMs directory as target directory to avoid downloads
184185
print("\n*** Get build deps for every SRPM built by XCP-ng ***")
185-
for srpm_nvr, build_info in xcp_builds.iteritems():
186+
for srpm_nvr, build_info in xcp_builds.items():
186187
if build_info['built-by'] == 'xcp-ng':
187188
build_info['build-deps'] = get_build_deps(os.path.join(xcp_srpm_repo, srpm_nvr + ".src.rpm"),
188189
install_root,
@@ -194,7 +195,7 @@ def main():
194195

195196
# For each RPM from our repos, get its runtime dependencies, and add info from xcp_ng_rpms_srpms
196197
print("\n*** Get runtime deps for all RPMs ***")
197-
for srpm_nvr, build_info in xcp_builds.iteritems():
198+
for srpm_nvr, build_info in xcp_builds.items():
198199
for rpm_nvra in build_info['rpms']:
199200
installable, deps = get_all_runtime_deps(rpm_nvra, install_root)
200201
xcp_rpms[rpm_nvra] = {

0 commit comments

Comments
 (0)