D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/python-mglob-0.4-12.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.RiHMS0 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf mglob-0.4 + /usr/bin/unzip -qq /home/iurt/rpmbuild/SOURCES/mglob-0.4.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd mglob-0.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mglob-0.4-built-in-set.patch):' Patch #0 (mglob-0.4-built-in-set.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file mglob.py Hunk #1 succeeded at 70 (offset 1 line). + sed -i -e '/^#!\//, 1d' mglob.py + find -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + /usr/bin/2to3 --write --nobackups . RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./mglob.py RefactoringTool: No changes to ./setup.py RefactoringTool: Files that were modified: RefactoringTool: ./mglob.py RefactoringTool: ./setup.py --- ./mglob.py (original) +++ ./mglob.py (refactored) @@ -86,7 +86,7 @@ contained in them - otherwise, directory names are returned as is. """ - if isinstance(flist, basestring): + if isinstance(flist, str): flist = flist.split() done_set = set() denied_set = set() @@ -160,16 +160,16 @@ denied_set.add(ent[1:]) # glob only dirs elif ent.lower().startswith('dir:'): - res.extend(once_filter(filter(os.path.isdir,glob.glob(ent[4:])))) + res.extend(once_filter(list(filter(os.path.isdir,glob.glob(ent[4:]))))) # get all files in the specified dir elif os.path.isdir(ent) and exp_dirs: - res.extend(once_filter(filter(os.path.isfile,glob.glob(ent + os.sep+"*")))) + res.extend(once_filter(list(filter(os.path.isfile,glob.glob(ent + os.sep+"*"))))) # glob only files elif '*' in ent or '?' in ent: - res.extend(once_filter(filter(os.path.isfile,glob.glob(ent)))) + res.extend(once_filter(list(filter(os.path.isfile,glob.glob(ent))))) else: res.extend(once_filter([ent])) @@ -184,17 +184,17 @@ def main(): if len(sys.argv) < 2: - print globsyntax + print(globsyntax) return - print "\n".join(expand(sys.argv[1:])), + print("\n".join(expand(sys.argv[1:])), end=' ') def mglob_f(self, arg): from IPython.genutils import SList if arg.strip(): return SList(expand(arg)) - print "Please specify pattern!" - print globsyntax + print("Please specify pattern!") + print(globsyntax) def init_ipython(ip): """ register %mglob for IPython """ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.fYahp3 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mglob-0.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib copying mglob.py -> build/lib + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.1V5gQ3 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 + cd mglob-0.4 + '[' 1 -eq 1 ']' + /usr/bin/python3 setup.py install -O1 --skip-build --root /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 running install running install_lib creating /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr creating /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib creating /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8 creating /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8/site-packages copying build/lib/mglob.py -> /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8/site-packages byte-compiling /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8/site-packages/mglob.py to mglob.cpython-38.pyc writing byte-compilation script '/tmp/tmpubaew4vp.py' /usr/bin/python3 /tmp/tmpubaew4vp.py removing /tmp/tmpubaew4vp.py running install_egg_info running egg_info writing mglob.egg-info/PKG-INFO writing dependency_links to mglob.egg-info/dependency_links.txt writing entry points to mglob.egg-info/entry_points.txt writing top-level names to mglob.egg-info/top_level.txt reading manifest file 'mglob.egg-info/SOURCES.txt' writing manifest file 'mglob.egg-info/SOURCES.txt' Copying mglob.egg-info to /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8/site-packages/mglob-0.4-py3.8.egg-info running install_scripts Installing mglob script to /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/bin + mv /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/bin/mglob /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/bin/python3-mglob + /usr/lib/rpm/find-debuginfo.sh -j96 --strict-build-id -m -i --build-id-seed 0.4-12.mga8 --unique-debug-suffix -0.4-12.mga8.x86_64 --unique-debug-src-base python-mglob-0.4-12.mga8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/mglob-0.4 + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 1 Bytecompiling .py files below /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64/usr/lib/python3.8 using /usr/bin/python3.8 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: python3-mglob-0.4-12.mga8.noarch Provides: python-mglob = 0.4-12.mga8 python3-mglob = 0.4-12.mga8 python3.8-mglob = 0.4-12.mga8 python3.8dist(mglob) = 0.4 python3dist(mglob) = 0.4 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.8 python3.8dist(setuptools) Obsoletes: python-mglob < 0.4-12.mga8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 Wrote: /home/iurt/rpmbuild/RPMS/noarch/python3-mglob-0.4-12.mga8.noarch.rpm Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Mkyxv1 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd mglob-0.4 + /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/python-mglob-0.4-12.mga8.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.5p9kO2 + umask 022 + cd /home/iurt/rpmbuild/BUILD + rm -rf mglob-0.4 + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!