<86>Jul 25 08:27:11 userdel[1369458]: delete user 'rooter' <86>Jul 25 08:27:11 userdel[1369458]: removed group 'rooter' owned by 'rooter' <86>Jul 25 08:27:11 userdel[1369458]: removed shadow group 'rooter' owned by 'rooter' <86>Jul 25 08:27:11 groupadd[1369466]: group added to /etc/group: name=rooter, GID=603 <86>Jul 25 08:27:11 groupadd[1369466]: group added to /etc/gshadow: name=rooter <86>Jul 25 08:27:11 groupadd[1369466]: new group: name=rooter, GID=603 <86>Jul 25 08:27:11 useradd[1369477]: new user: name=rooter, UID=603, GID=603, home=/root, shell=/bin/bash <86>Jul 25 08:27:11 userdel[1369486]: delete user 'builder' <86>Jul 25 08:27:11 userdel[1369486]: removed group 'builder' owned by 'builder' <86>Jul 25 08:27:11 userdel[1369486]: removed shadow group 'builder' owned by 'builder' <86>Jul 25 08:27:11 groupadd[1369494]: group added to /etc/group: name=builder, GID=604 <86>Jul 25 08:27:11 groupadd[1369494]: group added to /etc/gshadow: name=builder <86>Jul 25 08:27:11 groupadd[1369494]: new group: name=builder, GID=604 <86>Jul 25 08:27:11 useradd[1369500]: new user: name=builder, UID=604, GID=604, home=/usr/src, shell=/bin/bash <13>Jul 25 08:27:13 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jul 25 08:27:13 rpmi: libexpat-2.2.9-alt1 sisyphus+252464.200.2.1 1590958865 installed <13>Jul 25 08:27:13 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 25 08:27:13 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Jul 25 08:27:13 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 25 08:27:13 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Jul 25 08:27:13 rpmi: ca-certificates-2020.06.29-alt1 sisyphus+254237.300.1.1 1593450881 installed <13>Jul 25 08:27:13 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Jul 25 08:27:13 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Jul 25 08:27:13 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 25 08:27:13 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Jul 25 08:27:13 rpmi: python3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 08:27:14 rpmi: python3-base-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 08:27:14 rpmi: libpython3-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 08:27:14 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Jul 25 08:27:14 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Jul 25 08:27:16 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Jul 25 08:27:16 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Jul 25 08:27:16 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Jul 25 08:27:16 rpmi: libffi6-1:3.2.1-alt4 sisyphus+251953.300.2.1 1589891360 installed <13>Jul 25 08:27:16 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Jul 25 08:27:16 groupadd[1386786]: group added to /etc/group: name=_keytab, GID=499 <86>Jul 25 08:27:16 groupadd[1386786]: group added to /etc/gshadow: name=_keytab <86>Jul 25 08:27:16 groupadd[1386786]: new group: name=_keytab, GID=499 <13>Jul 25 08:27:16 rpmi: libkrb5-1.18.2-alt2 sisyphus+254565.100.4.1 1594375666 installed <13>Jul 25 08:27:16 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Jul 25 08:27:16 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Jul 25 08:27:16 rpmi: python-modules-encodings-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:16 rpmi: python-modules-compiler-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:16 rpmi: python-modules-email-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:16 rpmi: python-modules-unittest-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:16 rpmi: python-modules-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:16 rpmi: python-modules-nis-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:17 rpmi: python-modules-ctypes-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:17 rpmi: python-modules-multiprocessing-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:17 rpmi: python-modules-logging-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:17 rpmi: python-tools-2to3-2.7.18-alt1 sisyphus+250345.100.4.1 1588665080 installed <13>Jul 25 08:27:17 rpmi: python3-module-appdirs-1.4.3-alt2 sisyphus+246664.100.1.1 1582182741 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-usersettings-1.0.7-alt3.nosrc.rpm <13>Jul 25 08:27:18 rpmi: python3-module-pkg_resources-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed <13>Jul 25 08:27:18 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Jul 25 08:27:18 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Jul 25 08:27:18 rpmi: python3-dev-3.8.5-alt1 sisyphus+244405.100.3.1 1595544514 installed <13>Jul 25 08:27:18 rpmi: python3-module-setuptools-1:46.1.3-alt1 sisyphus+250566.200.3.1 1587973342 installed Installing python3-module-usersettings-1.0.7-alt3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.24304 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-usersettings-1.0.7 + echo 'Source #0 (python3-module-usersettings-1.0.7.tar):' Source #0 (python3-module-usersettings-1.0.7.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-usersettings-1.0.7.tar + cd python3-module-usersettings-1.0.7 + /bin/chmod -c -Rf u+rwX,go-w . + find ./ -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./usersettings.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./examples/usersettings-example.py RefactoringTool: Files that were modified: RefactoringTool: ./usersettings.py RefactoringTool: ./setup.py RefactoringTool: ./examples/usersettings-example.py --- ./usersettings.py (original) +++ ./usersettings.py (refactored) @@ -3,7 +3,7 @@ Provide interface for persistent portable editable user settings """ import os -import ConfigParser +import configparser import ast import appdirs @@ -38,13 +38,13 @@ def load_settings(self): """ Set default values and parse stored settings file """ # Set the defaults - for key, value in self._settings_defaults.items(): + for key, value in list(self._settings_defaults.items()): if key not in self._settings_types: self._settings_types[key] = str super(Settings, self).__setitem__(key, value) # Load the stored values - parser = ConfigParser.RawConfigParser() + parser = configparser.RawConfigParser() try: with open(self.settings_file, 'r') as settings_fp: parser.readfp(settings_fp) @@ -75,10 +75,10 @@ def save_settings(self): """ Write the settings data to disk """ if not os.path.exists(self.settings_directory): - os.makedirs(self.settings_directory, 0755) - parser = ConfigParser.RawConfigParser() + os.makedirs(self.settings_directory, 0o755) + parser = configparser.RawConfigParser() parser.add_section('settings') - for key, value in self.items(): + for key, value in list(self.items()): parser.set('settings', key, value) with open(self.settings_file, 'wb') as settings_fp: parser.write(settings_fp) --- ./examples/usersettings-example.py (original) +++ ./examples/usersettings-example.py (refactored) @@ -32,7 +32,7 @@ CONF.add_setting("counter", int, default=0) CONF.load_settings() -print "Counter:", CONF.counter +print("Counter:", CONF.counter) CONF.counter += 1 CONF.save_settings() + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.63166 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-usersettings-1.0.7 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib copying usersettings.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.63166 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-usersettings-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-usersettings-buildroot + cd python3-module-usersettings-1.0.7 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-usersettings-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-usersettings-buildroot creating /usr/src/tmp/python3-module-usersettings-buildroot/usr creating /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib creating /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages copying build/lib/usersettings.py -> /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings.py to usersettings.cpython-38.pyc running install_egg_info running egg_info creating usersettings.egg-info writing usersettings.egg-info/PKG-INFO writing dependency_links to usersettings.egg-info/dependency_links.txt writing requirements to usersettings.egg-info/requires.txt writing top-level names to usersettings.egg-info/top_level.txt writing manifest file 'usersettings.egg-info/SOURCES.txt' reading manifest file 'usersettings.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'usersettings.egg-info/SOURCES.txt' Copying usersettings.egg-info to /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-usersettings-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-usersettings-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-usersettings-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-usersettings-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-usersettings-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-usersettings-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-usersettings-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-usersettings-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-usersettings-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.pyc compile /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-usersettings-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-usersettings-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.pyc' Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.99301 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-usersettings-1.0.7 + exit 0 Processing files: python3-module-usersettings-1.0.7-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.48502 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-usersettings-1.0.7 + DOCDIR=/usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + /bin/mkdir -p /usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + cp -prL README.md docs/AUTHORS.txt docs/CHANGELOG.txt docs/FAQ.txt docs/INSTALL.txt docs/LICENSE.txt docs/NEWS.txt docs/README.txt docs/THANKS.txt docs/TODO.txt examples /usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + chmod -R go-w /usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + chmod -R a+rX /usr/src/tmp/python3-module-usersettings-buildroot/usr/share/doc/python3-module-usersettings-1.0.7 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.8ryda8 find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.RiK9Pa find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) shebang.req.files: executable script /usr/src/tmp/python3-module-usersettings-buildroot/usr/lib/python3/site-packages/usersettings.py is not executable Provides: python3(usersettings) Requires: python3(appdirs) < 0, /usr/lib/python3/site-packages, python3(ast) < 0, python3(configparser) < 0, python3(os) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-usersettings-1.0.7-alt3.noarch.rpm 4.03user 0.46system 0:06.14elapsed 73%CPU (0avgtext+0avgdata 18980maxresident)k 0inputs+0outputs (0major+131618minor)pagefaults 0swaps 10.76user 4.02system 0:16.34elapsed 90%CPU (0avgtext+0avgdata 110716maxresident)k 0inputs+0outputs (0major+577652minor)pagefaults 0swaps --- python3-module-usersettings-1.0.7-alt3.noarch.rpm.repo 2020-01-14 07:05:23.000000000 +0000 +++ python3-module-usersettings-1.0.7-alt3.noarch.rpm.hasher 2020-07-25 08:27:26.046943804 +0000 @@ -1,11 +1,11 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info 40755 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/usersettings-1.0.7-py3.7.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/usersettings.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info 40755 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/usersettings-1.0.7-py3.8.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/usersettings.py 100644