<86>Oct 4 09:39:40 userdel[813922]: delete user 'rooter' <86>Oct 4 09:39:40 userdel[813922]: removed group 'rooter' owned by 'rooter' <86>Oct 4 09:39:40 groupadd[813943]: group added to /etc/group: name=rooter, GID=651 <86>Oct 4 09:39:40 groupadd[813943]: group added to /etc/gshadow: name=rooter <86>Oct 4 09:39:40 groupadd[813943]: new group: name=rooter, GID=651 <86>Oct 4 09:39:40 useradd[813960]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Oct 4 09:39:40 userdel[813989]: delete user 'builder' <86>Oct 4 09:39:40 userdel[813989]: removed group 'builder' owned by 'builder' <86>Oct 4 09:39:40 userdel[813989]: removed shadow group 'builder' owned by 'builder' <86>Oct 4 09:39:40 groupadd[814008]: group added to /etc/group: name=builder, GID=652 <86>Oct 4 09:39:40 groupadd[814008]: group added to /etc/gshadow: name=builder <86>Oct 4 09:39:40 groupadd[814008]: new group: name=builder, GID=652 <86>Oct 4 09:39:40 useradd[814024]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Oct 4 09:39:43 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Oct 4 09:39:43 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Oct 4 09:39:43 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Oct 4 09:39:43 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Oct 4 09:39:43 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Oct 4 09:39:43 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Oct 4 09:39:43 rpmi: ca-certificates-2020.01.23-alt1 p9+245253.100.3.1 1580749631 installed <13>Oct 4 09:39:43 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Oct 4 09:39:43 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Oct 4 09:39:43 rpmi: libcrypto1.1-1.1.1g-alt1 p9+250580.100.5.1 1588175266 installed <13>Oct 4 09:39:43 rpmi: libssl1.1-1.1.1g-alt1 p9+250580.100.5.1 1588175266 installed <13>Oct 4 09:39:43 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Oct 4 09:39:44 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Oct 4 09:39:45 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Oct 4 09:39:45 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Oct 4 09:39:45 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Oct 4 09:39:48 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Oct 4 09:39:48 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Oct 4 09:39:48 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Oct 4 09:39:48 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Oct 4 09:39:48 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Oct 4 09:39:48 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Oct 4 09:39:48 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Oct 4 09:39:48 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Oct 4 09:39:48 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Oct 4 09:39:48 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Oct 4 09:39:48 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Oct 4 09:39:48 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Oct 4 09:39:48 rpmi: python3-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Oct 4 09:39:49 rpmi: python3-module-requests-2.23.0-alt1 p9+250567.500.5.1 1590420921 installed <13>Oct 4 09:39:49 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Oct 4 09:39:49 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847335 installed <13>Oct 4 09:39:49 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Oct 4 09:39:49 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Oct 4 09:39:49 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Oct 4 09:39:49 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Oct 4 09:39:49 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Oct 4 09:39:49 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Oct 4 09:39:49 rpmi: libgcrypt20-1.8.5-alt3 p9+239665.100.7.1 1586364779 installed <13>Oct 4 09:39:49 rpmi: libxslt-1.1.33-alt1 sisyphus+226936.100.1.1 1554820937 installed <13>Oct 4 09:39:49 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Oct 4 09:39:49 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Oct 4 09:39:49 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758819 installed <13>Oct 4 09:39:49 rpmi: python3-module-BeautifulSoup4-4.6.3-alt1 sisyphus+227474.1200.1.1 1555687950 installed <13>Oct 4 09:39:49 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Oct 4 09:39:49 groupadd[840033]: group added to /etc/group: name=_keytab, GID=499 <86>Oct 4 09:39:49 groupadd[840033]: group added to /etc/gshadow: name=_keytab <86>Oct 4 09:39:49 groupadd[840033]: new group: name=_keytab, GID=499 <13>Oct 4 09:39:49 rpmi: libkrb5-1.17.1-alt1 p9+242852.100.2.1 1576572639 installed <13>Oct 4 09:39:49 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Oct 4 09:39:49 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Oct 4 09:39:49 rpmi: python-modules-encodings-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:49 rpmi: python-modules-compiler-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:49 rpmi: python-modules-email-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:49 rpmi: python-modules-unittest-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-modules-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-modules-nis-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-modules-logging-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python-tools-2to3-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Oct 4 09:39:50 rpmi: python3-module-vk_api-9.3.1-alt2.qa1 sisyphus+227536.1100.1.2 1555962842 installed <13>Oct 4 09:39:50 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/spelt-0.1.20170307-alt2.nosrc.rpm Installing spelt-0.1.20170307-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.98764 + 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.42206 + 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 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + 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.50299 + 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 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + 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.55760 + 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.trWQEZ 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.8isAa7 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 5.08user 0.53system 0:06.84elapsed 82%CPU (0avgtext+0avgdata 19248maxresident)k 0inputs+0outputs (0major+136467minor)pagefaults 0swaps 16.68user 5.47system 0:24.01elapsed 92%CPU (0avgtext+0avgdata 116884maxresident)k 0inputs+0outputs (0major+534390minor)pagefaults 0swaps