<86>Dec 6 01:11:03 userdel[2345823]: delete user 'rooter' <86>Dec 6 01:11:03 userdel[2345823]: removed group 'rooter' owned by 'rooter' <86>Dec 6 01:11:03 userdel[2345823]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 6 01:11:03 groupadd[2345846]: group added to /etc/group: name=rooter, GID=651 <86>Dec 6 01:11:03 groupadd[2345846]: group added to /etc/gshadow: name=rooter <86>Dec 6 01:11:03 groupadd[2345846]: new group: name=rooter, GID=651 <86>Dec 6 01:11:03 useradd[2345863]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Dec 6 01:11:03 userdel[2345895]: delete user 'builder' <86>Dec 6 01:11:03 userdel[2345895]: removed group 'builder' owned by 'builder' <86>Dec 6 01:11:03 userdel[2345895]: removed shadow group 'builder' owned by 'builder' <86>Dec 6 01:11:03 groupadd[2345916]: group added to /etc/group: name=builder, GID=652 <86>Dec 6 01:11:03 groupadd[2345916]: group added to /etc/gshadow: name=builder <86>Dec 6 01:11:03 groupadd[2345916]: new group: name=builder, GID=652 <86>Dec 6 01:11:03 useradd[2345949]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Dec 6 01:11:05 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Dec 6 01:11:05 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103332 installed <13>Dec 6 01:11:05 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Dec 6 01:11:05 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Dec 6 01:11:05 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 6 01:11:05 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 6 01:11:05 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Dec 6 01:11:05 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Dec 6 01:11:05 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385869 installed <13>Dec 6 01:11:05 rpmi: libcrypto1.1-1.1.1g-alt1 p9+250580.100.5.1 1588175208 installed <13>Dec 6 01:11:05 rpmi: libssl1.1-1.1.1g-alt1 p9+250580.100.5.1 1588175208 installed <13>Dec 6 01:11:05 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587126956 installed <13>Dec 6 01:11:06 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587126956 installed <13>Dec 6 01:11:06 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587126956 installed <13>Dec 6 01:11:06 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 6 01:11:06 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 6 01:11:08 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Dec 6 01:11:08 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 6 01:11:08 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Dec 6 01:11:08 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Dec 6 01:11:09 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Dec 6 01:11:09 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Dec 6 01:11:09 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Dec 6 01:11:09 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Dec 6 01:11:09 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316502 installed <13>Dec 6 01:11:09 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555299604 installed <13>Dec 6 01:11:09 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Dec 6 01:11:09 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853074 installed <13>Dec 6 01:11:09 rpmi: python3-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Dec 6 01:11:09 rpmi: python3-module-requests-2.23.0-alt1 p9+250567.500.5.1 1590420921 installed <13>Dec 6 01:11:09 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Dec 6 01:11:09 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847321 installed <13>Dec 6 01:11:09 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994917 installed <13>Dec 6 01:11:09 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686221 installed <13>Dec 6 01:11:09 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587126956 installed <13>Dec 6 01:11:09 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512088 installed <13>Dec 6 01:11:09 rpmi: libgpg-error-1.36-alt1 p9+261942.140.4.1 1606237682 installed <13>Dec 6 01:11:09 rpmi: libgcrypt20-1.8.5-alt3 p9+261942.200.4.1 1606237844 installed <13>Dec 6 01:11:09 rpmi: libxslt-1.1.34-alt1.p9.1 p9+261811.300.3.1 1605513910 installed <13>Dec 6 01:11:09 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Dec 6 01:11:09 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Dec 6 01:11:09 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758711 installed <13>Dec 6 01:11:09 rpmi: python3-module-BeautifulSoup4-4.6.3-alt1 sisyphus+227474.1200.1.1 1555687950 installed <13>Dec 6 01:11:09 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091653 installed <86>Dec 6 01:11:09 groupadd[2369107]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 6 01:11:09 groupadd[2369107]: new group: name=_keytab, GID=499 <13>Dec 6 01:11:09 rpmi: libkrb5-1.17.2-alt1 p9+262110.100.3.1 1606242396 installed <13>Dec 6 01:11:09 rpmi: libtirpc-1.0.3-alt1 1532008015 installed <13>Dec 6 01:11:09 rpmi: libnsl2-1.1.0-alt1_1 1511548748 installed <13>Dec 6 01:11:09 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 6 01:11:09 rpmi: python3-module-vk_api-9.3.1-alt2.qa1 sisyphus+227536.1100.1.2 1555962842 installed <13>Dec 6 01: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 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.74978 + 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.74978 + 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.40805 + 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/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.7569 + 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.x9AJIa 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.GAzJ3N 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 3.44user 0.50system 0:05.31elapsed 74%CPU (0avgtext+0avgdata 27164maxresident)k 0inputs+0outputs (0major+173698minor)pagefaults 0swaps 10.24user 3.29system 0:15.44elapsed 87%CPU (0avgtext+0avgdata 117600maxresident)k 3504inputs+0outputs (0major+583015minor)pagefaults 0swaps