<86>Apr 14 01:08:03 userdel[9458]: delete user 'rooter' <86>Apr 14 01:08:03 userdel[9458]: removed group 'rooter' owned by 'rooter' <86>Apr 14 01:08:03 userdel[9458]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 14 01:08:03 groupadd[9478]: group added to /etc/group: name=rooter, GID=567 <86>Apr 14 01:08:03 groupadd[9478]: group added to /etc/gshadow: name=rooter <86>Apr 14 01:08:03 groupadd[9478]: new group: name=rooter, GID=567 <86>Apr 14 01:08:03 useradd[9493]: new user: name=rooter, UID=567, GID=567, home=/root, shell=/bin/bash <86>Apr 14 01:08:03 userdel[9520]: delete user 'builder' <86>Apr 14 01:08:03 userdel[9520]: removed group 'builder' owned by 'builder' <86>Apr 14 01:08:03 userdel[9520]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:08:03 groupadd[9545]: group added to /etc/group: name=builder, GID=568 <86>Apr 14 01:08:03 groupadd[9545]: group added to /etc/gshadow: name=builder <86>Apr 14 01:08:03 groupadd[9545]: new group: name=builder, GID=568 <86>Apr 14 01:08:03 useradd[9560]: new user: name=builder, UID=568, GID=568, home=/usr/src, shell=/bin/bash <13>Apr 14 01:08:07 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:08:07 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:08:07 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:08:07 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:08:07 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:07 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:08:07 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:08:07 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:08:07 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:08:07 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:08:07 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:08:07 groupadd[22136]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:08:07 groupadd[22136]: group added to /etc/gshadow: name=_keytab <86>Apr 14 01:08:07 groupadd[22136]: new group: name=_keytab, GID=499 <13>Apr 14 01:08:07 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 01:08:08 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:08:08 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:08:08 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:08 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:08:08 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:08:08 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:08:08 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:08:09 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed Installing python-module-texttemplate-0.2.0-alt3.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.68702 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-texttemplate-0.2.0 + echo 'Source #0 (python-module-texttemplate-0.2.0.tar):' Source #0 (python-module-texttemplate-0.2.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-texttemplate-0.2.0.tar + cd python-module-texttemplate-0.2.0 + /bin/chmod -c -Rf u+rwX,go-w . + rm -rf ../python3 + cp -a . ../python3 + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.68702 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-texttemplate-0.2.0 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build running build running build_py creating build creating build/lib copying texttemplate.py -> build/lib + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-texttemplate-0.2.0 + 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 ./texttemplate.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./Examples/Tutorial_1.py RefactoringTool: Files that were modified: RefactoringTool: ./texttemplate.py RefactoringTool: ./setup.py RefactoringTool: ./Examples/Tutorial_1.py --- ./texttemplate.py (original) +++ ./texttemplate.py (refactored) @@ -84,8 +84,8 @@ return else: break - raise ParseError, "Can't process separator 'sep:%s': " \ - "no matching Repeater node found." % element.nodeName + raise ParseError("Can't process separator 'sep:%s': " \ + "no matching Repeater node found." % element.nodeName) # event handlers @@ -93,10 +93,10 @@ # Called when parser finds an open tag, e.g. {con:foo}. If tag is self- # closing, e.g. {con:bar/}, closeTag() is called immediately after. if nodeName in self.__invalidNodeNames: - raise ParseError, 'Invalid node name: %r' % nodeName + raise ParseError('Invalid node name: %r' % nodeName) if nodeName in self.__outputStack[-1].elementNames and \ nodeType != 'sep': - raise ParseError, 'Duplicate node name: %r' % nodeName + raise ParseError('Duplicate node name: %r' % nodeName) self.__outputStack.append(ElementCollector(nodeType, nodeName)) def closeTag(self, nodeType, nodeName): @@ -117,8 +117,8 @@ # Returns a list of top-level nodes and interstitial strings. element = self.__outputStack.pop() if element.nodeType != 'tem': - raise ParseError, "Can't complete template: node '%s:%s' wasn't " \ - "correctly closed." % (element.nodeType, element.nodeName) + raise ParseError("Can't complete template: node '%s:%s' wasn't " \ + "correctly closed." % (element.nodeType, element.nodeName)) return element.content ## @@ -166,7 +166,7 @@ """ def __readOnly(self, val): - raise RuntimeError, "Property is read-only." + raise RuntimeError("Property is read-only.") nodetype = property(lambda self:self._nodeType, __readOnly, doc="str (r/o) -- the node's type (con/rep/tem)") @@ -312,19 +312,19 @@ try: return self.__nodesDict[name] except KeyError: - raise AttributeError , "%s instance has no attribute %r." % ( - self.__class__.__name__, name) + raise AttributeError("%s instance has no attribute %r." % ( + self.__class__.__name__, name)) def __setitem__(self, name, value): """Replace sub-node, e.g. node['foo'] = newNode""" - if self.__nodesDict.has_key(name): + if name in self.__nodesDict: if not isinstance(value, Node): # Note: This type check is to catch careless user # mistakes like 'node.foo = "text"' instead of # 'node.foo.content = "text"' - raise TypeError, "Can't replace node '%s:%s': value isn't " \ + raise TypeError("Can't replace node '%s:%s': value isn't " \ "a Node object." % (self.__nodesDict[name]._nodeName, - self.__nodesDict[name]._nodeName) + self.__nodesDict[name]._nodeName)) value = value._clone() value._nodeName = name idx = self.__nodesList.index(self.__nodesDict[name]) @@ -434,6 +434,6 @@ # assigned values at point of origin, but much cheaper return ''.join(collector) except TypeError: - raise TypeError, "Can't render template: some node's content " \ - "was set to a non-text value." - + raise TypeError("Can't render template: some node's content " \ + "was set to a non-text value.") + --- ./Examples/Tutorial_1.py (original) +++ ./Examples/Tutorial_1.py (refactored) @@ -32,4 +32,4 @@ title = 'Balderdash Pro 5' descriptions = ['New Extended Fubbilizer', 'Updated Super Knobitzer', 'Enhanced Virbiled Noxinator'] -print renderTemplate(title, descriptions) +print(renderTemplate(title, descriptions)) + sed -i 's|/usr/bin/python|/usr/bin/python3|' Examples/Tutorial_1.py + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build running build running build_py creating build creating build/lib copying texttemplate.py -> build/lib + popd ~/RPM/BUILD/python-module-texttemplate-0.2.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.50638 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-texttemplate-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-texttemplate-buildroot + cd python-module-texttemplate-0.2.0 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-texttemplate-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-texttemplate-buildroot creating /usr/src/tmp/python-module-texttemplate-buildroot/usr creating /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib creating /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages copying build/lib/texttemplate.py -> /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages byte-compiling /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages/texttemplate.py to texttemplate.pyc running install_egg_info Writing /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages/texttemplate-0.2.0-py2.7.egg-info + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-texttemplate-0.2.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-texttemplate-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages copying build/lib/texttemplate.py -> /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/texttemplate.py to texttemplate.cpython-35.pyc running install_egg_info Writing /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/texttemplate-0.2.0-py3.5.egg-info + popd ~/RPM/BUILD/python-module-texttemplate-0.2.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-texttemplate-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-texttemplate-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-texttemplate-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-texttemplate-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-texttemplate-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-texttemplate-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages/texttemplate.pyc compile /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages/texttemplate.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-texttemplate-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python2.7/site-packages/texttemplate.py Bytecompiling python3 modules in /usr/src/tmp/python-module-texttemplate-buildroot using python3 unlink /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.pyc compile /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/texttemplate.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-texttemplate-buildroot using python3 -O compile /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/texttemplate.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-texttemplate-buildroot using python3 -OO compile /usr/src/tmp/python-module-texttemplate-buildroot/usr/lib/python3/site-packages/texttemplate.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/texttemplate.pyo' => './usr/lib/python2.7/site-packages/texttemplate.pyc' Processing files: python-module-texttemplate-0.2.0-alt3.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.78773 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-texttemplate-0.2.0 + DOCDIR=/usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + /bin/mkdir -p /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + cp -prL README.txt Documentation Examples /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + chmod -R go-w /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + chmod -R a+rX /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python-module-texttemplate-0.2.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.vLbMsQ 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.Gb37wp find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Provides: python2.7(texttemplate) Requires: /usr/lib/python2.7/site-packages, python-base, python2.7(keyword) Processing files: python3-module-texttemplate-0.2.0-alt3.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.96272 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-texttemplate-0.2.0 + DOCDIR=/usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + /bin/mkdir -p /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + cp -prL README.txt Documentation ../python3/Examples /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + chmod -R go-w /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + chmod -R a+rX /usr/src/tmp/python-module-texttemplate-buildroot/usr/share/doc/python3-module-texttemplate-0.2.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.nWK6s2 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.YJfdAI find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) Provides: python3(texttemplate), python3.3(texttemplate) Requires: /usr/lib/python3/site-packages, python3(keyword) < 0, python3(re) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-texttemplate-0.2.0-alt3.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-texttemplate-0.2.0-alt3.1.noarch.rpm 3.40user 0.74system 0:07.97elapsed 52%CPU (0avgtext+0avgdata 22588maxresident)k 0inputs+0outputs (0major+180126minor)pagefaults 0swaps 9.75user 3.84system 0:18.08elapsed 75%CPU (0avgtext+0avgdata 122052maxresident)k 0inputs+0outputs (0major+417438minor)pagefaults 0swaps --- python3-module-texttemplate-0.2.0-alt3.1.noarch.rpm.repo 2016-03-16 13:39:30.000000000 +0000 +++ python3-module-texttemplate-0.2.0-alt3.1.noarch.rpm.hasher 2019-04-14 01:08:19.501586276 +0000 @@ -1,5 +1,6 @@ /usr/lib/python3/site-packages/__pycache__ 40755 -/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/texttemplate-0.2.0-py3.3.egg-info 100644 +/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/texttemplate.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/texttemplate-0.2.0-py3.5.egg-info 100644 /usr/lib/python3/site-packages/texttemplate.py 100644 @@ -14,4 +15,4 @@ Requires: /usr/lib/python3/site-packages -Requires: python3.3(keyword) -Requires: python3.3(re) +Requires: python3(keyword) < 0 +Requires: python3(re) < 0 Requires: rpmlib(PayloadIsLzma)