<86>Apr 2 14:59:40 userdel[1451570]: delete user 'rooter' <86>Apr 2 14:59:40 userdel[1451570]: removed group 'rooter' owned by 'rooter' <86>Apr 2 14:59:40 userdel[1451570]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 2 14:59:40 groupadd[1451586]: group added to /etc/group: name=rooter, GID=603 <86>Apr 2 14:59:40 groupadd[1451586]: group added to /etc/gshadow: name=rooter <86>Apr 2 14:59:40 groupadd[1451586]: new group: name=rooter, GID=603 <86>Apr 2 14:59:40 useradd[1451599]: new user: name=rooter, UID=603, GID=603, home=/root, shell=/bin/bash <86>Apr 2 14:59:40 userdel[1451622]: delete user 'builder' <86>Apr 2 14:59:40 userdel[1451622]: removed group 'builder' owned by 'builder' <86>Apr 2 14:59:40 userdel[1451622]: removed shadow group 'builder' owned by 'builder' <86>Apr 2 14:59:40 groupadd[1451634]: group added to /etc/group: name=builder, GID=604 <86>Apr 2 14:59:40 groupadd[1451634]: group added to /etc/gshadow: name=builder <86>Apr 2 14:59:40 groupadd[1451634]: new group: name=builder, GID=604 <86>Apr 2 14:59:40 useradd[1451643]: new user: name=builder, UID=604, GID=604, home=/usr/src, shell=/bin/bash <13>Apr 2 14:59:43 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 2 14:59:43 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Apr 2 14:59:44 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 2 14:59:44 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Apr 2 14:59:44 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 2 14:59:44 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 2 14:59:44 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Apr 2 14:59:44 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Apr 2 14:59:44 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 2 14:59:44 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 2 14:59:44 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 2 14:59:44 rpmi: python3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 2 14:59:45 rpmi: python3-base-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 2 14:59:45 rpmi: libpython3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 2 14:59:45 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Apr 2 14:59:45 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Apr 2 14:59:49 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Apr 2 14:59:49 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Apr 2 14:59:49 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Apr 2 14:59:49 groupadd[1463495]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 2 14:59:49 groupadd[1463495]: group added to /etc/gshadow: name=_keytab <86>Apr 2 14:59:49 groupadd[1463495]: new group: name=_keytab, GID=499 <13>Apr 2 14:59:49 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Apr 2 14:59:49 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Apr 2 14:59:49 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Apr 2 14:59:49 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:49 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:49 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 2 14:59:50 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>Apr 2 14:59:53 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Apr 2 14:59:53 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 2 14:59:53 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 2 14:59:53 rpmi: python3-dev-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 2 14:59:53 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 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.95364 + 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.77564 + 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.16823 + 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.45847 + 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.53814 + 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.d0PfP8 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.slup76 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 8.08user 0.89system 0:12.46elapsed 72%CPU (0avgtext+0avgdata 20328maxresident)k 0inputs+0outputs (0major+136456minor)pagefaults 0swaps 20.08user 8.05system 0:32.70elapsed 86%CPU (0avgtext+0avgdata 108856maxresident)k 0inputs+0outputs (0major+582987minor)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-04-02 15:00:08.946905644 +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