<86>Nov 6 07:10:58 userdel[1115433]: delete user 'rooter' <86>Nov 6 07:10:58 groupadd[1115516]: group added to /etc/group: name=rooter, GID=672 <86>Nov 6 07:10:58 groupadd[1115516]: group added to /etc/gshadow: name=rooter <86>Nov 6 07:10:58 groupadd[1115516]: new group: name=rooter, GID=672 <86>Nov 6 07:10:58 useradd[1115562]: new user: name=rooter, UID=672, GID=672, home=/root, shell=/bin/bash <86>Nov 6 07:10:58 userdel[1116049]: delete user 'builder' <86>Nov 6 07:10:58 userdel[1116049]: removed group 'builder' owned by 'builder' <86>Nov 6 07:10:58 userdel[1116049]: removed shadow group 'builder' owned by 'builder' <86>Nov 6 07:10:58 groupadd[1116129]: group added to /etc/group: name=builder, GID=673 <86>Nov 6 07:10:58 groupadd[1116129]: group added to /etc/gshadow: name=builder <86>Nov 6 07:10:59 groupadd[1116129]: new group: name=builder, GID=673 <86>Nov 6 07:10:59 useradd[1116182]: new user: name=builder, UID=673, GID=673, home=/usr/src, shell=/bin/bash <13>Nov 6 07:11:02 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Nov 6 07:11:02 rpmi: libexpat-2.4.3-alt1 p9+293696.100.1.1 1643124786 installed <13>Nov 6 07:11:02 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Nov 6 07:11:02 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Nov 6 07:11:02 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 6 07:11:02 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 6 07:11:02 rpmi: ca-certificates-2021.10.06-alt1 p9+289862.100.1.1 1637033643 installed <13>Nov 6 07:11:02 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Nov 6 07:11:02 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Nov 6 07:11:03 rpmi: libcrypto1.1-1.1.1n-alt2 p9+297595.100.1.1 1648753395 installed <13>Nov 6 07:11:03 rpmi: libssl1.1-1.1.1n-alt2 p9+297595.100.1.1 1648753395 installed <13>Nov 6 07:11:03 rpmi: python3-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed <13>Nov 6 07:11:03 rpmi: libpython3-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed <13>Nov 6 07:11:03 rpmi: python3-base-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed <13>Nov 6 07:11:03 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Nov 6 07:11:03 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Nov 6 07:11:08 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Nov 6 07:11:08 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Nov 6 07:11:08 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Nov 6 07:11:08 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Nov 6 07:11:08 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Nov 6 07:11:08 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Nov 6 07:11:08 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Nov 6 07:11:08 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847321 installed <13>Nov 6 07:11:08 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Nov 6 07:11:08 rpmi: python3-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Nov 6 07:11:08 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Nov 6 07:11:08 rpmi: python3-module-attrs-19.3.0-alt1 p9+266900.5140.22.1 1618153287 installed <13>Nov 6 07:11:08 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Nov 6 07:11:08 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Nov 6 07:11:08 rpmi: python3-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Nov 6 07:11:08 rpmi: python3-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Nov 6 07:11:08 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Nov 6 07:11:08 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Nov 6 07:11:08 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316502 installed <13>Nov 6 07:11:08 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555299604 installed <13>Nov 6 07:11:08 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Nov 6 07:11:08 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Nov 6 07:11:08 rpmi: python3-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Nov 6 07:11:08 rpmi: python3-module-requests-2.23.0-alt1 p9+250567.500.5.1 1590420921 installed <13>Nov 6 07:11:08 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Nov 6 07:11:08 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Nov 6 07:11:08 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Nov 6 07:11:08 rpmi: python3-dev-3.7.11-alt1 p9+273501.10.37.1 1629720188 installed <13>Nov 6 07:11:08 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Nov 6 07:11:08 rpmi: libgpg-error-1.36-alt1 p9+261942.140.4.1 1606237682 installed <13>Nov 6 07:11:08 rpmi: libgcrypt20-1.8.5-alt3 p9+261942.200.4.1 1606237844 installed <13>Nov 6 07:11:08 rpmi: libxslt-1.1.34-alt1.p9.1 p9+261811.300.3.1 1605513910 installed <13>Nov 6 07:11:08 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Nov 6 07:11:09 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Nov 6 07:11:09 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758711 installed <13>Nov 6 07:11:09 rpmi: python3-module-soupsieve-2.0.1-alt1 p9+274160.340.3.1 1624547632 installed <13>Nov 6 07:11:09 rpmi: python3-module-beautifulsoup4-4.9.3-alt1 p9+274160.400.3.1 1624547679 installed <13>Nov 6 07:11:09 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Nov 6 07:11:09 groupadd[1155207]: group added to /etc/group: name=_keytab, GID=499 <86>Nov 6 07:11:09 groupadd[1155207]: group added to /etc/gshadow: name=_keytab <86>Nov 6 07:11:09 groupadd[1155207]: new group: name=_keytab, GID=499 <13>Nov 6 07:11:09 rpmi: libkrb5-1.17.2-alt3 p9+296674.100.1.1 1647341120 installed <13>Nov 6 07:11:09 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Nov 6 07:11:09 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Nov 6 07:11:09 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Nov 6 07:11:09 rpmi: python3-module-vk_api-9.3.1-alt2.qa1 sisyphus+227536.1100.1.2 1555962842 installed <13>Nov 6 07:11:09 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/spelt-0.1.20170307-alt2.nosrc.rpm (w1.gzdio) 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.66772 + 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.66772 + 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.95638 + 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 + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + 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,gnuconfig) 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/python Bytecompiling python modules with optimization in /usr/src/tmp/spelt-buildroot using /usr/bin/python -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.23211 + 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.i5rHTz 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.VohifN 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/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 (w2.lzdio) 3.57user 0.63system 0:07.42elapsed 56%CPU (0avgtext+0avgdata 26744maxresident)k 0inputs+0outputs (0major+177503minor)pagefaults 0swaps 4.33user 2.17system 0:26.94elapsed 24%CPU (0avgtext+0avgdata 120040maxresident)k 96inputs+0outputs (51418major+231773minor)pagefaults 0swaps