<86>Dec 4 16:15:03 userdel[494107]: delete user 'rooter' <86>Dec 4 16:15:03 userdel[494107]: removed group 'rooter' owned by 'rooter' <86>Dec 4 16:15:03 groupadd[494120]: group added to /etc/group: name=rooter, GID=678 <86>Dec 4 16:15:03 groupadd[494120]: group added to /etc/gshadow: name=rooter <86>Dec 4 16:15:03 groupadd[494120]: new group: name=rooter, GID=678 <86>Dec 4 16:15:03 useradd[494128]: new user: name=rooter, UID=678, GID=678, home=/root, shell=/bin/bash <86>Dec 4 16:15:03 userdel[494141]: delete user 'builder' <86>Dec 4 16:15:03 userdel[494141]: removed group 'builder' owned by 'builder' <86>Dec 4 16:15:03 userdel[494141]: removed shadow group 'builder' owned by 'builder' <86>Dec 4 16:15:03 groupadd[494156]: group added to /etc/group: name=builder, GID=679 <86>Dec 4 16:15:03 groupadd[494156]: group added to /etc/gshadow: name=builder <86>Dec 4 16:15:03 groupadd[494156]: new group: name=builder, GID=679 <86>Dec 4 16:15:03 useradd[494163]: new user: name=builder, UID=679, GID=679, home=/usr/src, shell=/bin/bash <13>Dec 4 16:15:04 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 4 16:15:04 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed <13>Dec 4 16:15:04 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 16:15:04 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Dec 4 16:15:04 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 16:15:04 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 4 16:15:04 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Dec 4 16:15:04 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 4 16:15:04 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed <13>Dec 4 16:15:05 rpmi: libcrypto1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 16:15:05 rpmi: libssl1.1-1.1.1g-alt1 sisyphus+249982.60.8.1 1587743711 installed <13>Dec 4 16:15:05 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:15:05 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:15:05 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:15:05 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 4 16:15:05 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 4 16:15:07 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 4 16:15:07 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001679 installed <13>Dec 4 16:15:07 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820124 installed <13>Dec 4 16:15:07 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088229 installed <86>Dec 4 16:15:07 groupadd[504423]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 4 16:15:07 groupadd[504423]: group added to /etc/gshadow: name=_keytab <86>Dec 4 16:15:07 groupadd[504423]: new group: name=_keytab, GID=499 <13>Dec 4 16:15:07 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605777180 installed <13>Dec 4 16:15:07 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038270 installed <13>Dec 4 16:15:07 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 4 16:15:08 rpmi: python-modules-encodings-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-compiler-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-email-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-unittest-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-nis-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-ctypes-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-multiprocessing-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-modules-logging-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed <13>Dec 4 16:15:08 rpmi: python-tools-2to3-2.7.18-alt2 sisyphus+262143.200.4.1 1606132536 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-ybrowserauth-1.2-alt2.nosrc.rpm <13>Dec 4 16:15:09 rpmi: python3-module-pkg_resources-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed <13>Dec 4 16:15:09 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 16:15:09 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292929 installed <13>Dec 4 16:15:09 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904174 installed <13>Dec 4 16:15:10 rpmi: python3-module-setuptools-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed Installing python3-module-ybrowserauth-1.2-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.14490 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-ybrowserauth-1.2 + echo 'Source #0 (python3-module-ybrowserauth-1.2.tar):' Source #0 (python3-module-ybrowserauth-1.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-ybrowserauth-1.2.tar + cd python3-module-ybrowserauth-1.2 + /bin/chmod -c -Rf u+rwX,go-w . + sed -i 's|import md5|from hashlib import md5|' ybrowserauth.py + 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 ./ybrowserauth.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./bbatestPHOTOS.py RefactoringTool: Refactored ./bbatestMAIL.py RefactoringTool: Files that were modified: RefactoringTool: ./ybrowserauth.py RefactoringTool: ./setup.py RefactoringTool: ./bbatestPHOTOS.py RefactoringTool: ./bbatestMAIL.py --- ./ybrowserauth.py (original) +++ ./ybrowserauth.py (refactored) @@ -10,9 +10,9 @@ __revision__ = '$Revision: 000 $' import re -import urlparse -import urllib2 -from urllib import urlencode +import urllib.parse +import urllib.request, urllib.error, urllib.parse +from urllib.parse import urlencode from hashlib import md5 from time import time import simplejson @@ -147,7 +147,7 @@ Return: - a string that is a URL with auth data appended """ - parts = urlparse.urlparse(aurl) + parts = urllib.parse.urlparse(aurl) tstamp = str(int(time())) relative_uri = "" if parts[2] != "": @@ -206,10 +206,10 @@ url = self.getAccessURL() try: - xml = urllib2.urlopen(url).read() - except urllib2.HTTPError, e: + xml = urllib.request.urlopen(url).read() + except urllib.error.HTTPError as e: raise WShttpError("HTTP error: %d" % e.code) - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on credentials web service call. Url = " + url) @@ -309,14 +309,14 @@ """ url = self.createAuthWSurl(url) - request = urllib2.Request(url) + request = urllib.request.Request(url) request.add_header('Cookie', self.cookie) try: - xml = urllib2.urlopen(request).read() - except urllib2.HTTPError, e: + xml = urllib.request.urlopen(request).read() + except urllib.error.HTTPError as e: raise WShttpError("HTTP error: %d" % e.code) - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on auth web service call. Url = " + url) @@ -341,15 +341,15 @@ data = simplejson.dumps(thecall) - request = urllib2.Request(YBrowserAuth.JSON_RPC_ENDPOINT + '?appid=' + self.appid + '&WSSID=' + self.WSSID, data) + request = urllib.request.Request(YBrowserAuth.JSON_RPC_ENDPOINT + '?appid=' + self.appid + '&WSSID=' + self.WSSID, data) request.add_header('Cookie', self.cookie) request.add_header('Content-Type', 'application/json') try: - json = urllib2.urlopen(request).read() - except urllib2.HTTPError, e: + json = urllib.request.urlopen(request).read() + except urllib.error.HTTPError as e: raise JSONrpcErrorCode("HTTP error: %d" % e.code, json='[nothing returned]') - except urllib2.URLError, e: + except urllib.error.URLError as e: raise WSurlError("Network error: %s" % e.reason.args[1]) except: raise WSunknownError("Unknown error on auth web service call. Url = " + YBrowserAuth.JSON_RPC_ENDPOINT) --- ./bbatestPHOTOS.py (original) +++ ./bbatestPHOTOS.py (refactored) @@ -20,7 +20,7 @@ from mod_python import apache from mod_python import util -import urllib2 +import urllib.request, urllib.error, urllib.parse import ybrowserauth from xml.sax import saxutils --- ./bbatestMAIL.py (original) +++ ./bbatestMAIL.py (refactored) @@ -20,7 +20,7 @@ from mod_python import apache from mod_python import util -import urllib2 +import urllib.request, urllib.error, urllib.parse import ybrowserauth from xml.sax import saxutils + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.89814 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-ybrowserauth-1.2 + 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 ybrowserauth.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.89814 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-ybrowserauth-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-ybrowserauth-buildroot + cd python3-module-ybrowserauth-1.2 + 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-ybrowserauth-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-ybrowserauth-buildroot creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages copying build/lib/ybrowserauth.py -> /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py to ybrowserauth.cpython-38.pyc running install_egg_info Writing /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.8.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-ybrowserauth-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-ybrowserauth-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-ybrowserauth-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-ybrowserauth-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-ybrowserauth-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.pyc compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-ybrowserauth-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.pyc' Hardlinking identical .pyc and .pyo files Processing files: python3-module-ybrowserauth-1.2-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.96690 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-ybrowserauth-1.2 + DOCDIR=/usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + /bin/mkdir -p /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + cp -prL changelog.txt readme.txt /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + chmod -R go-w /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + chmod -R a+rX /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/share/doc/python3-module-ybrowserauth-1.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.kj10tR 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.chPjDS find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/python3-module-ybrowserauth-buildroot/usr/lib/python3/site-packages/ybrowserauth.py: skipping time Provides: python3(ybrowserauth) Requires: /usr/lib/python3/site-packages, python3(hashlib) < 0, python3(re) < 0, python3(simplejson) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-ybrowserauth-1.2-alt2.noarch.rpm 3.46user 0.38system 0:05.37elapsed 71%CPU (0avgtext+0avgdata 15412maxresident)k 0inputs+0outputs (0major+116182minor)pagefaults 0swaps 10.09user 3.64system 0:15.33elapsed 89%CPU (0avgtext+0avgdata 109232maxresident)k 0inputs+0outputs (0major+558242minor)pagefaults 0swaps --- python3-module-ybrowserauth-1.2-alt2.noarch.rpm.repo 2019-12-30 10:04:42.454217702 +0000 +++ python3-module-ybrowserauth-1.2-alt2.noarch.rpm.hasher 2020-12-04 16:15:16.480091362 +0000 @@ -1,6 +1,6 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.7.egg-info 100644 +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/ybrowserauth.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/ybrowserauth-1.2-py3.8.egg-info 100644 /usr/lib/python3/site-packages/ybrowserauth.py 100644