Skip to content

Commit 762a86d

Browse files
committed
rpmwatcher: switch extract_deps to python3
Signed-off-by: Yann Dirson <[email protected]>
1 parent b12ad0f commit 762a86d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/rpmwatcher/rpmwatcher_extract_deps.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env python
1+
#!/bin/env python3
22

33
"""
44
MUST BE RUN AS ROOT FROM WITHIN A MINIMAL CENTOS CONTAINER
@@ -15,7 +15,6 @@
1515
Those are common concepts in the RPM world.
1616
"""
1717

18-
from __future__ import print_function
1918
import argparse
2019
import subprocess
2120
import os
@@ -182,7 +181,7 @@ def main():
182181
# For every SRPM built by ourselves, get its build dependencies
183182
# We use our local RPMs directory as target directory to avoid downloads
184183
print("\n*** Get build deps for every SRPM built by XCP-ng ***")
185-
for srpm_nvr, build_info in xcp_builds.iteritems():
184+
for srpm_nvr, build_info in xcp_builds.items():
186185
if build_info['built-by'] == 'xcp-ng':
187186
build_info['build-deps'] = get_build_deps(os.path.join(xcp_srpm_repo, srpm_nvr + ".src.rpm"),
188187
install_root,
@@ -194,7 +193,7 @@ def main():
194193

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

0 commit comments

Comments
 (0)