File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- #!/bin/env python
1
+ #!/bin/env python3
2
2
3
3
"""
4
4
MUST BE RUN AS ROOT FROM WITHIN A MINIMAL CENTOS CONTAINER
15
15
Those are common concepts in the RPM world.
16
16
"""
17
17
18
- from __future__ import print_function
19
18
import argparse
20
19
import subprocess
21
20
import os
@@ -182,7 +181,7 @@ def main():
182
181
# For every SRPM built by ourselves, get its build dependencies
183
182
# We use our local RPMs directory as target directory to avoid downloads
184
183
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 ():
186
185
if build_info ['built-by' ] == 'xcp-ng' :
187
186
build_info ['build-deps' ] = get_build_deps (os .path .join (xcp_srpm_repo , srpm_nvr + ".src.rpm" ),
188
187
install_root ,
@@ -194,7 +193,7 @@ def main():
194
193
195
194
# For each RPM from our repos, get its runtime dependencies, and add info from xcp_ng_rpms_srpms
196
195
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 ():
198
197
for rpm_nvra in build_info ['rpms' ]:
199
198
installable , deps = get_all_runtime_deps (rpm_nvra , install_root )
200
199
xcp_rpms [rpm_nvra ] = {
You can’t perform that action at this time.
0 commit comments