<86>Dec 16 01:49:04 userdel[2795521]: delete user 'rooter' <86>Dec 16 01:49:04 userdel[2795521]: removed group 'rooter' owned by 'rooter' <86>Dec 16 01:49:04 groupadd[2795560]: group added to /etc/group: name=rooter, GID=642 <86>Dec 16 01:49:04 groupadd[2795560]: group added to /etc/gshadow: name=rooter <86>Dec 16 01:49:04 groupadd[2795560]: new group: name=rooter, GID=642 <86>Dec 16 01:49:04 useradd[2795576]: new user: name=rooter, UID=642, GID=642, home=/root, shell=/bin/bash <86>Dec 16 01:49:04 userdel[2795597]: delete user 'builder' <86>Dec 16 01:49:04 userdel[2795597]: removed group 'builder' owned by 'builder' <86>Dec 16 01:49:04 userdel[2795597]: removed shadow group 'builder' owned by 'builder' <86>Dec 16 01:49:04 groupadd[2795618]: group added to /etc/group: name=builder, GID=643 <86>Dec 16 01:49:04 groupadd[2795618]: group added to /etc/gshadow: name=builder <86>Dec 16 01:49:04 groupadd[2795618]: new group: name=builder, GID=643 <86>Dec 16 01:49:04 useradd[2795632]: new user: name=builder, UID=643, GID=643, home=/usr/src, shell=/bin/bash <13>Dec 16 01:49:06 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Dec 16 01:49:06 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824514 installed <13>Dec 16 01:49:06 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274915 installed <13>Dec 16 01:49:06 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825069 installed <13>Dec 16 01:49:06 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 16 01:49:06 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 16 01:49:06 rpmi: ca-certificates-2020.10.22-alt1 sisyphus+260224.300.2.1 1603549301 installed <13>Dec 16 01:49:06 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Dec 16 01:49:06 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274915 installed <13>Dec 16 01:49:06 rpmi: libcrypto1.1-1.1.1i-alt1 sisyphus+263103.100.1.1 1607445492 installed <13>Dec 16 01:49:06 rpmi: libssl1.1-1.1.1i-alt1 sisyphus+263103.100.1.1 1607445492 installed <13>Dec 16 01:49:06 rpmi: python3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904101 installed <13>Dec 16 01:49:07 rpmi: python3-base-3.8.6-alt1 sisyphus+259085.100.2.1 1601904101 installed <13>Dec 16 01:49:07 rpmi: libpython3-3.8.6-alt1 sisyphus+259085.100.2.1 1601904101 installed <13>Dec 16 01:49:07 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 16 01:49:07 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 16 01:49:10 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Dec 16 01:49:10 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001689 installed <13>Dec 16 01:49:10 rpmi: libkeyutils-1.6.1-alt1 sisyphus+256015.100.1.1 1596820121 installed <13>Dec 16 01:49:10 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088191 installed <86>Dec 16 01:49:10 groupadd[2828555]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 16 01:49:10 groupadd[2828555]: group added to /etc/gshadow: name=_keytab <86>Dec 16 01:49:10 groupadd[2828555]: new group: name=_keytab, GID=499 <13>Dec 16 01:49:10 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605776749 installed <13>Dec 16 01:49:10 rpmi: libtirpc-1.2.6-alt1 sisyphus+250076.100.1.1 1587038260 installed <13>Dec 16 01:49:10 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Dec 16 01:49:10 rpmi: python-modules-encodings-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-compiler-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-email-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-unittest-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-nis-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-ctypes-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-multiprocessing-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-modules-logging-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python-tools-2to3-2.7.18-alt2 sisyphus+262143.200.4.1 1606132484 installed <13>Dec 16 01:49:10 rpmi: python3-module-xmpp-0.5.0-alt4 sisyphus+245271.100.1.1 1580376902 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/python3-module-jabberbot-0.16-alt2.nosrc.rpm <13>Dec 16 01:49:12 rpmi: python3-module-pkg_resources-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed <13>Dec 16 01:49:12 rpmi: libtinfo-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292920 installed <13>Dec 16 01:49:12 rpmi: libncurses-devel-6.2.20201107-alt1 sisyphus+261749.100.1.1 1605292920 installed <13>Dec 16 01:49:12 rpmi: python3-dev-3.8.6-alt1 sisyphus+259085.100.2.1 1601904101 installed <13>Dec 16 01:49:12 rpmi: python3-module-setuptools-1:46.1.3-alt2 sisyphus+260458.600.6.1 1603876498 installed Installing python3-module-jabberbot-0.16-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.8156 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf jabberbot-0.16 + echo 'Source #0 (jabberbot-0.16.tar.gz):' Source #0 (jabberbot-0.16.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/jabberbot-0.16.tar.gz + /bin/tar -xf - + cd jabberbot-0.16 + /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: No changes to ./setup.py RefactoringTool: Refactored ./jabberbot.py --- ./jabberbot.py (original) +++ ./jabberbot.py (refactored) @@ -31,15 +31,15 @@ import os import re import sys -import thread +import _thread try: import xmpp except ImportError: - print >> sys.stderr, """ + print(""" You need to install xmpppy from http://xmpppy.sf.net/. On Debian-based systems, install the python-xmpp package. - """ + """, file=sys.stderr) sys.exit(-1) import time @@ -462,7 +462,7 @@ "" + \ text.encode('utf-8') + "")) message.addChild(node=html) - except Exception, e: + except Exception as e: # Didn't work, incorrect markup or something. self.log.debug('An error while building a xhtml message. '\ 'Fallback to normal messagebody') @@ -509,7 +509,7 @@ If the parameter 'only_available' is True, the broadcast will not go to users whose status is not 'Available'.""" - for jid, (show, status) in self.__seen.items(): + for jid, (show, status) in list(self.__seen.items()): if not only_available or show is self.AVAILABLE: self.send(jid, message) @@ -546,11 +546,11 @@ self.status_type_changed(jid, self.OFFLINE) try: - subscription = self.roster.getSubscription(unicode(jid.__str__())) - except KeyError, e: + subscription = self.roster.getSubscription(str(jid.__str__())) + except KeyError as e: # User not on our roster subscription = None - except AttributeError, e: + except AttributeError as e: # Recieved presence update before roster built return @@ -635,7 +635,7 @@ if jid not in self.__seen: self.log.info('Ignoring message from unseen guest: %s' % jid) self.log.debug("I've seen: %s" % - ["%s" % x for x in self.__seen.keys()]) + ["%s" % x for x in list(self.__seen.keys())]) return # Remember the last-talked-in message thread for replies @@ -653,7 +653,7 @@ def execute_and_send(): try: reply = self.commands[cmd](mess, args) - except Exception, e: + except Exception as e: self.log.exception('An error happened while processing '\ 'a message ("%s") from %s: %s"' % (text, jid, traceback.format_exc(e))) @@ -663,7 +663,7 @@ # Experimental! # if command should be executed in a seperate thread do it if self.commands[cmd]._jabberbot_command_thread: - thread.start_new_thread(execute_and_send, ()) + _thread.start_new_thread(execute_and_send, ()) else: execute_and_send() else: @@ -726,13 +726,12 @@ usage = '\n'.join(sorted([ '%s: %s' % (name, (command.__doc__ or \ '(undocumented)').strip().split('\n', 1)[0]) - for (name, command) in self.commands.iteritems() \ + for (name, command) in self.commands.items() \ if name != (self.__command_prefix + 'help') \ and not command._jabberbot_command_hidden ])) - usage = '\n\n' + '\n\n'.join(filter(None, - [usage, self.MSG_HELP_TAIL % {'helpcommand': - self.__command_prefix + 'help'}])) + usage = '\n\n' + '\n\n'.join([_f for _f in [usage, self.MSG_HELP_TAIL % {'helpcommand': + self.__command_prefix + 'help'}] if _f]) else: description = '' if (args not in self.commands and @@ -747,7 +746,7 @@ top = self.top_of_help_message() bottom = self.bottom_of_help_message() - return ''.join(filter(None, [top, description, usage, bottom])) + return ''.join([_f for _f in RefactoringTool: Refactored ./examples/uptime.py RefactoringTool: No changes to ./examples/twitterbot.py RefactoringTool: Refactored ./examples/tunes.py RefactoringTool: No changes to ./examples/muc.py RefactoringTool: No changes to ./examples/broadcast.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./jabberbot.py RefactoringTool: ./examples/uptime.py RefactoringTool: ./examples/twitterbot.py RefactoringTool: ./examples/tunes.py RefactoringTool: ./examples/muc.py RefactoringTool: ./examples/broadcast.py [top, description, usage, bottom] if _f]) def idle_proc(self): """This function will be called in the main loop.""" @@ -769,7 +768,7 @@ #logging.debug('Got response: ' + str(res)) if res is None: self.on_ping_timeout() - except IOError, e: + except IOError as e: logging.error('Error pinging the server: %s, '\ 'treating as ping timeout.' % e) self.on_ping_timeout() --- ./examples/uptime.py (original) +++ ./examples/uptime.py (refactored) @@ -31,9 +31,9 @@ if __name__ == '__main__': if len(sys.argv) != 3: - print >>sys.stderr, """ + print(""" Usage: %s - """ % sys.argv[0] + """ % sys.argv[0], file=sys.stderr) username, password = sys.argv[1:] uptime_bot = UptimeBot(username, password, command_prefix='.') --- ./examples/tunes.py (original) +++ ./examples/tunes.py (refactored) @@ -43,7 +43,7 @@ if __name__ == '__main__': if len(sys.argv) < 3: - print 'Usage: %s login@host password' % sys.argv[0] + print('Usage: %s login@host password' % sys.argv[0]) sys.exit(1) bot = Tunes(sys.argv[1], sys.argv[2]) bot.serve_forever() + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.94737 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd jabberbot-0.16 + 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 running build running build_py creating build creating build/lib copying jabberbot.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.48089 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-jabberbot-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-jabberbot-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd jabberbot-0.16 + 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-jabberbot-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-jabberbot-buildroot creating /usr/src/tmp/python3-module-jabberbot-buildroot/usr creating /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib creating /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages copying build/lib/jabberbot.py -> /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py to jabberbot.cpython-38.pyc running install_egg_info Writing /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot-0.16-py3.8.egg-info + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-jabberbot-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-jabberbot-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-jabberbot-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-jabberbot-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-jabberbot-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-jabberbot-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-jabberbot-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-jabberbot-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-jabberbot-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.pyc compile /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-jabberbot-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-jabberbot-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.pyc' Hardlinking identical .pyc and .pyo files Processing files: python3-module-jabberbot-0.16-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.78401 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd jabberbot-0.16 + DOCDIR=/usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + /bin/mkdir -p /usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + cp -prL examples README AUTHORS /usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + chmod -R go-w /usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + chmod -R a+rX /usr/src/tmp/python3-module-jabberbot-buildroot/usr/share/doc/python3-module-jabberbot-0.16 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.cPjPCq 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.KbaRHm 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-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py: skipping sys python3.req: /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py: skipping _thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py: line=37 IGNORE (for REQ=slight and deep=8) module=xmpp python3.req: /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py: skipping time shebang.req.files: executable script /usr/src/tmp/python3-module-jabberbot-buildroot/usr/lib/python3/site-packages/jabberbot.py is not executable Provides: python3(jabberbot) Requires: python3-module-xmpp, /usr/lib/python3/site-packages, python3(inspect) < 0, python3(logging) < 0, python3(os) < 0, python3(re) < 0, python3(traceback) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-jabberbot-0.16-alt2.noarch.rpm 4.52user 0.58system 0:06.41elapsed 79%CPU (0avgtext+0avgdata 31460maxresident)k 0inputs+0outputs (0major+155118minor)pagefaults 0swaps 11.60user 4.30system 0:17.86elapsed 89%CPU (0avgtext+0avgdata 110292maxresident)k 248inputs+0outputs (0major+609728minor)pagefaults 0swaps --- python3-module-jabberbot-0.16-alt2.noarch.rpm.repo 2020-01-30 13:02:14.000000000 +0000 +++ python3-module-jabberbot-0.16-alt2.noarch.rpm.hasher 2020-12-16 01:49:19.944227449 +0000 @@ -1,5 +1,5 @@ -/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/jabberbot-0.16-py3.7.egg-info 100644 +/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/__pycache__/jabberbot.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/jabberbot-0.16-py3.8.egg-info 100644 /usr/lib/python3/site-packages/jabberbot.py 100644 @@ -21,3 +21,3 @@ Requires: python3(traceback) < 0 -Requires: rpmlib(PayloadIsLzma) +Requires: rpmlib(PayloadIsXz) Provides: python3(jabberbot)