<86>Nov 30 04:19:06 userdel[17981]: delete user 'rooter' <86>Nov 30 04:19:06 userdel[17981]: removed shadow group 'rooter' owned by 'rooter' <86>Nov 30 04:19:06 groupadd[18003]: group added to /etc/group: name=rooter, GID=645 <86>Nov 30 04:19:06 groupadd[18003]: group added to /etc/gshadow: name=rooter <86>Nov 30 04:19:06 groupadd[18003]: new group: name=rooter, GID=645 <86>Nov 30 04:19:06 useradd[18013]: new user: name=rooter, UID=645, GID=645, home=/root, shell=/bin/bash <86>Nov 30 04:19:06 userdel[18035]: delete user 'builder' <86>Nov 30 04:19:06 userdel[18035]: removed group 'builder' owned by 'builder' <86>Nov 30 04:19:06 userdel[18035]: removed shadow group 'builder' owned by 'builder' <86>Nov 30 04:19:06 groupadd[18056]: group added to /etc/group: name=builder, GID=646 <86>Nov 30 04:19:06 groupadd[18056]: group added to /etc/gshadow: name=builder <86>Nov 30 04:19:06 groupadd[18056]: new group: name=builder, GID=646 <86>Nov 30 04:19:06 useradd[18066]: new user: name=builder, UID=646, GID=646, home=/usr/src, shell=/bin/bash <13>Nov 30 04:19:09 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Nov 30 04:19:09 rpmi: libexpat-2.2.4-alt1 1503305341 installed <13>Nov 30 04:19:09 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Nov 30 04:19:09 rpmi: libtasn1-4.15.0-alt1 sisyphus+241940.100.1.1 1574959862 installed <13>Nov 30 04:19:09 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 30 04:19:09 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 30 04:19:09 rpmi: ca-certificates-2019.10.28-alt1 sisyphus+239875.300.1.1 1572267834 installed <13>Nov 30 04:19:09 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Nov 30 04:19:09 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288187 installed <13>Nov 30 04:19:09 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Nov 30 04:19:09 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235630 installed <13>Nov 30 04:19:09 rpmi: python3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Nov 30 04:19:09 rpmi: libpython3-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Nov 30 04:19:09 rpmi: python3-base-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Nov 30 04:19:09 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Nov 30 04:19:09 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Nov 30 04:19:12 rpmi: python3-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Nov 30 04:19:12 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Nov 30 04:19:12 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Nov 30 04:19:12 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Nov 30 04:19:12 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Nov 30 04:19:12 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Nov 30 04:19:12 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Nov 30 04:19:12 rpmi: python3-module-cffi-1.13.2-alt1 sisyphus+240882.100.2.1 1573892830 installed <13>Nov 30 04:19:12 rpmi: python3-module-cryptography-2.8-alt1 sisyphus+239390.100.1.2 1571349409 installed <13>Nov 30 04:19:12 rpmi: python3-module-OpenSSL-19.0.0-alt1 sisyphus+238757.100.1.1 1570339901 installed <13>Nov 30 04:19:12 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Nov 30 04:19:12 rpmi: python3-module-urllib3-2:1.25.6-alt1 sisyphus+238720.100.2.1 1570349439 installed <13>Nov 30 04:19:12 rpmi: python3-module-requests-2.22.0-alt1 sisyphus+238756.100.1.1 1570338316 installed <13>Nov 30 04:19:12 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Nov 30 04:19:12 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847321 installed <13>Nov 30 04:19:12 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Nov 30 04:19:12 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Nov 30 04:19:12 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Nov 30 04:19:12 rpmi: python3-dev-3.7.4-alt2 sisyphus+239418.100.1.1 1571389791 installed <13>Nov 30 04:19:12 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Nov 30 04:19:12 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521088 installed <13>Nov 30 04:19:12 rpmi: libgcrypt20-1.8.5-alt3 sisyphus+239622.100.1.1 1571746563 installed <13>Nov 30 04:19:12 rpmi: libxslt-1.1.34-alt1 sisyphus+240826.100.1.1 1573801838 installed <13>Nov 30 04:19:12 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Nov 30 04:19:12 rpmi: python3-module-html5lib-1:1.0.1-alt1 sisyphus+238807.100.2.1 1570465973 installed <13>Nov 30 04:19:12 rpmi: python3-module-lxml-4.4.1-alt1 sisyphus+236738.100.2.3 1567016364 installed <13>Nov 30 04:19:12 rpmi: python3-module-BeautifulSoup4-4.6.3-alt1 sisyphus+227474.1200.1.1 1555687950 installed <13>Nov 30 04:19:12 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Nov 30 04:19:12 groupadd[28163]: group added to /etc/group: name=_keytab, GID=499 <86>Nov 30 04:19:12 groupadd[28163]: group added to /etc/gshadow: name=_keytab <86>Nov 30 04:19:12 groupadd[28163]: new group: name=_keytab, GID=499 <13>Nov 30 04:19:12 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746443 installed <13>Nov 30 04:19:12 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Nov 30 04:19:12 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Nov 30 04:19:12 rpmi: python-modules-encodings-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:12 rpmi: python-modules-compiler-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:12 rpmi: python-modules-email-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:12 rpmi: python-modules-unittest-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-modules-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-modules-nis-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-modules-ctypes-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-modules-multiprocessing-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-modules-logging-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python-tools-2to3-2.7.17-alt3 sisyphus+240580.200.5.1 1573517270 installed <13>Nov 30 04:19:13 rpmi: python3-module-vk_api-9.3.1-alt2.qa1 sisyphus+227536.1100.1.2 1555962842 installed <13>Nov 30 04:19:13 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/spelt-0.1.20170307-alt2.nosrc.rpm Installing spelt-0.1.20170307-alt2.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.87176 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf spelt-0.1.20170307 + echo 'Source #0 (spelt-0.1.20170307.tar):' Source #0 (spelt-0.1.20170307.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/spelt-0.1.20170307.tar + cd spelt-0.1.20170307 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.75283 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd spelt-0.1.20170307 + 2to3 -w spelt RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored spelt/__init__.py RefactoringTool: Refactored spelt/picker.py RefactoringTool: Files that were modified: RefactoringTool: spelt/__init__.py RefactoringTool: spelt/picker.py --- spelt/__init__.py (original) +++ spelt/__init__.py (refactored) @@ -178,17 +178,17 @@ """ # to keep neuteral order and avoid overwriting when few photos have the same description - basename = u'%s%s' % (photo['id'], u'_' + photo.get('title') if photo.get('title') else '') + basename = '%s%s' % (photo['id'], '_' + photo.get('title') if photo.get('title') else '') # Filesystem naming limitation to avoid error 255 bytes for ext3,ext4 if sys.getsizeof(basename) > 245: basename = photo['id'] - target_filename = u'%s%s' % (basename, path.splitext(photo['url'])[1]) + target_filename = '%s%s' % (basename, path.splitext(photo['url'])[1]) photo_filename = path.join(output, target_filename) if path.isfile(photo_filename): - logger.debug(u'Image %s already exist. Skipped.', basename) + logger.debug('Image %s already exist. Skipped.', basename) return 1 - logger.debug(u'Begin download image %s to %s', photo['url'], photo_filename) + logger.debug('Begin download image %s to %s', photo['url'], photo_filename) try: r = requests.get(photo['url'], stream=True) with open(photo_filename, 'wb') as fd: @@ -232,7 +232,7 @@ offset += 1000 - logger.info(u'Album "%s" [%d] downloaded.', album['title'], album['size']) + logger.info('Album "%s" [%d] downloaded.', album['title'], album['size']) logger.info('%d photo(s) downloaded.' % sum([album['size'] for album in albums])) @@ -277,7 +277,7 @@ start_time = datetime.datetime.now() try: - username = args.username or raw_input('Username: ') + username = args.username or input('Username: ') password = args.password or getpass("Password (hidden): ") if not username or not password: @@ -290,7 +290,7 @@ selected_albums_titles = Picker( title='Select Albums to Process', - options=[u'%-45s %5d [ID:%d]' % (album['title'], album['size'], album['id']) for album + options=['%-45s %5d [ID:%d]' % (album['title'], album['size'], album['id']) for album in albums] ).get_selected() @@ -305,7 +305,7 @@ logger.debug('Adds %s to selection', id_) selected_albums = [album for album in albums if album['id'] in selected_albums_ids] - logger.debug(u'Selected Albums: %s' % [u'%s' % album['title'] for album in selected_albums]) + logger.debug('Selected Albums: %s' % ['%s' % album['title'] for album in selected_albums]) process_albums(albums=selected_albums, output=args.output, vk_session=vk_session) --- spelt/picker.py (original) +++ spelt/picker.py (refactored) @@ -92,8 +92,8 @@ if self.aborted: return False - ret_s = filter(lambda x: x["selected"], self.all_options) - return map(lambda x: x["label"], ret_s) + ret_s = [x for x in self.all_options if x["selected"]] + return [x["label"] for x in ret_s] def redraw(self): self.win.clear() + 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 creating build/lib/spelt copying spelt/picker.py -> build/lib/spelt copying spelt/__init__.py -> build/lib/spelt + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.23549 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/spelt-buildroot + : + /bin/rm -rf -- /usr/src/tmp/spelt-buildroot + cd spelt-0.1.20170307 + 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/spelt-buildroot --force running install running install_lib creating /usr/src/tmp/spelt-buildroot creating /usr/src/tmp/spelt-buildroot/usr creating /usr/src/tmp/spelt-buildroot/usr/lib creating /usr/src/tmp/spelt-buildroot/usr/lib/python3 creating /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt copying build/lib/spelt/__init__.py -> /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt copying build/lib/spelt/picker.py -> /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt byte-compiling /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/picker.py to picker.cpython-37.pyc running install_egg_info running egg_info creating Spelt.egg-info writing Spelt.egg-info/PKG-INFO writing dependency_links to Spelt.egg-info/dependency_links.txt writing entry points to Spelt.egg-info/entry_points.txt writing requirements to Spelt.egg-info/requires.txt writing top-level names to Spelt.egg-info/top_level.txt writing manifest file 'Spelt.egg-info/SOURCES.txt' reading manifest file 'Spelt.egg-info/SOURCES.txt' writing manifest file 'Spelt.egg-info/SOURCES.txt' Copying Spelt.egg-info to /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/Spelt-0.1-py3.7.egg-info running install_scripts Installing spelt script to /usr/src/tmp/spelt-buildroot/usr/bin + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/spelt-buildroot (auto) Verifying and fixing files in /usr/src/tmp/spelt-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/spelt-buildroot/ (default) Compressing files in /usr/src/tmp/spelt-buildroot (auto) Adjusting library links in /usr/src/tmp/spelt-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/spelt-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/spelt-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/spelt-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/spelt-buildroot using /usr/bin/python3 unlink /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__pycache__/picker.cpython-37.pyc compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__init__.py compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/picker.py Bytecompiling python3 modules with optimization in /usr/src/tmp/spelt-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__init__.py compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/picker.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/spelt-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__init__.py compile /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/picker.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/spelt/__pycache__/picker.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/spelt/__pycache__/picker.cpython-37.pyc' './usr/lib/python3/site-packages/spelt/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/spelt/__pycache__/__init__.cpython-37.pyc' Hardlinking identical .pyc and .pyo files Processing files: spelt-0.1.20170307-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.80756 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd spelt-0.1.20170307 + DOCDIR=/usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + export DOCDIR + rm -rf /usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + /bin/mkdir -p /usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + cp -prL readme.md /usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + chmod -R go-w /usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + chmod -R a+rX /usr/src/tmp/spelt-buildroot/usr/share/doc/spelt-0.1.20170307 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.vp56wt 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.tejW5r find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python3.req: /usr/src/tmp/spelt-buildroot/usr/bin/spelt: skipping sys python3.req: /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/__init__.py: skipping sys shebang.req.files: executable script /usr/src/tmp/spelt-buildroot/usr/lib/python3/site-packages/spelt/picker.py is not executable Provides: python3(spelt), python3(spelt.picker) Requires: python3-module-requests >= 2.9.1, /usr/bin/python3, /usr/lib/python3/site-packages, python3(argparse) < 0, python3(curses) < 0, python3(datetime) < 0, python3(functools) < 0, python3(getpass) < 0, python3(locale) < 0, python3(logging) < 0, python3(logging.config) < 0, python3(multiprocessing) < 0, python3(os) < 0, python3(pkg_resources) < 0, python3(re) < 0, python3(requests) < 0, python3(vk_api) < 0 Wrote: /usr/src/RPM/RPMS/noarch/spelt-0.1.20170307-alt2.noarch.rpm 3.48user 0.43system 0:05.86elapsed 66%CPU (0avgtext+0avgdata 27064maxresident)k 0inputs+0outputs (0major+175296minor)pagefaults 0swaps 10.19user 3.25system 0:16.62elapsed 80%CPU (0avgtext+0avgdata 110480maxresident)k 96inputs+0outputs (0major+582779minor)pagefaults 0swaps