<86>Feb 24 04:20:34 userdel[3122167]: delete user 'rooter' <86>Feb 24 04:20:34 userdel[3122167]: removed group 'rooter' owned by 'rooter' <86>Feb 24 04:20:34 userdel[3122167]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 24 04:20:34 groupadd[3122178]: group added to /etc/group: name=rooter, GID=585 <86>Feb 24 04:20:34 groupadd[3122178]: group added to /etc/gshadow: name=rooter <86>Feb 24 04:20:34 groupadd[3122178]: new group: name=rooter, GID=585 <86>Feb 24 04:20:34 useradd[3122184]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Feb 24 04:20:34 userdel[3122198]: delete user 'builder' <86>Feb 24 04:20:34 userdel[3122198]: removed group 'builder' owned by 'builder' <86>Feb 24 04:20:34 userdel[3122198]: removed shadow group 'builder' owned by 'builder' <86>Feb 24 04:20:34 groupadd[3122208]: group added to /etc/group: name=builder, GID=586 <86>Feb 24 04:20:34 groupadd[3122208]: group added to /etc/gshadow: name=builder <86>Feb 24 04:20:34 groupadd[3122208]: new group: name=builder, GID=586 <86>Feb 24 04:20:34 useradd[3122215]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash <13>Feb 24 04:20:38 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Feb 24 04:20:38 rpmi: libexpat-2.2.4-alt1 1503305341 installed <13>Feb 24 04:20:38 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Feb 24 04:20:38 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825069 installed <13>Feb 24 04:20:38 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 24 04:20:38 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 24 04:20:38 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Feb 24 04:20:38 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Feb 24 04:20:38 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Feb 24 04:20:38 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Feb 24 04:20:38 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Feb 24 04:20:38 rpmi: python3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 24 04:20:38 rpmi: libpython3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 24 04:20:39 rpmi: python3-base-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 24 04:20:39 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Feb 24 04:20:39 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Feb 24 04:20:43 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Feb 24 04:20:43 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Feb 24 04:20:43 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Feb 24 04:20:43 groupadd[3126683]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 24 04:20:43 groupadd[3126683]: group added to /etc/gshadow: name=_keytab <86>Feb 24 04:20:43 groupadd[3126683]: new group: name=_keytab, GID=499 <13>Feb 24 04:20:43 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137160 installed <13>Feb 24 04:20:43 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Feb 24 04:20:43 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Feb 24 04:20:43 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:43 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:43 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:43 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419620 installed <13>Feb 24 04:20:44 rpmi: python3-module-appdirs-1.4.3-alt2 sisyphus+246664.100.1.1 1582182741 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-usersettings-1.0.7-alt3.nosrc.rpm <13>Feb 24 04:20:47 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Feb 24 04:20:47 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Feb 24 04:20:47 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Feb 24 04:20:47 rpmi: python3-dev-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Feb 24 04:20:48 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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.37576 + 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.77439 + 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' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + 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.46778 + 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' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + 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-37.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.7.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-37.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-37.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/usersettings.cpython-37.pyc' Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.47778 + 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.47778 + 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.IOngPb 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.VdJH3e 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 7.27user 1.13system 0:11.25elapsed 74%CPU (0avgtext+0avgdata 27208maxresident)k 0inputs+0outputs (0major+177584minor)pagefaults 0swaps 18.94user 8.24system 0:31.76elapsed 85%CPU (0avgtext+0avgdata 111016maxresident)k 0inputs+0outputs (0major+634664minor)pagefaults 0swaps