<86>Feb 2 08:16:54 userdel[964696]: delete user 'rooter' <86>Feb 2 08:16:54 userdel[964696]: removed group 'rooter' owned by 'rooter' <86>Feb 2 08:16:54 groupadd[964707]: group added to /etc/group: name=rooter, GID=687 <86>Feb 2 08:16:54 groupadd[964707]: group added to /etc/gshadow: name=rooter <86>Feb 2 08:16:54 groupadd[964707]: new group: name=rooter, GID=687 <86>Feb 2 08:16:54 useradd[964713]: new user: name=rooter, UID=687, GID=687, home=/root, shell=/bin/bash <86>Feb 2 08:16:54 userdel[964726]: delete user 'builder' <86>Feb 2 08:16:54 userdel[964726]: removed group 'builder' owned by 'builder' <86>Feb 2 08:16:54 userdel[964726]: removed shadow group 'builder' owned by 'builder' <86>Feb 2 08:16:54 groupadd[964734]: group added to /etc/group: name=builder, GID=688 <86>Feb 2 08:16:54 groupadd[964734]: group added to /etc/gshadow: name=builder <86>Feb 2 08:16:54 groupadd[964734]: new group: name=builder, GID=688 <86>Feb 2 08:16:54 useradd[964744]: new user: name=builder, UID=688, GID=688, home=/usr/src, shell=/bin/bash <13>Feb 2 08:16:56 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Feb 2 08:16:56 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Feb 2 08:16:56 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Feb 2 08:16:56 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Feb 2 08:16:56 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 2 08:16:56 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 2 08:16:56 rpmi: ca-certificates-2019.10.28-alt1 p9+240634.100.1.1 1573575926 installed <13>Feb 2 08:16:56 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Feb 2 08:16:56 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Feb 2 08:16:56 rpmi: libcrypto1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Feb 2 08:16:56 rpmi: libssl1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Feb 2 08:16:56 rpmi: python3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Feb 2 08:16:56 rpmi: libpython3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Feb 2 08:16:57 rpmi: python3-base-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Feb 2 08:16:57 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Feb 2 08:16:57 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Feb 2 08:16:59 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Feb 2 08:16:59 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Feb 2 08:16:59 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Feb 2 08:16:59 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Feb 2 08:16:59 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Feb 2 08:16:59 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Feb 2 08:16:59 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Feb 2 08:16:59 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Feb 2 08:16:59 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Feb 2 08:16:59 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Feb 2 08:16:59 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Feb 2 08:16:59 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Feb 2 08:16:59 rpmi: python3-module-urllib3-2:1.24.3-alt1 sisyphus+228978.100.1.1 1557126149 installed <13>Feb 2 08:16:59 rpmi: python3-module-requests-2.21.0-alt1 sisyphus+228370.100.2.2 1556711628 installed <13>Feb 2 08:16:59 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Feb 2 08:16:59 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847335 installed <13>Feb 2 08:16:59 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Feb 2 08:16:59 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Feb 2 08:16:59 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Feb 2 08:16:59 rpmi: python3-dev-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Feb 2 08:16:59 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Feb 2 08:16:59 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Feb 2 08:16:59 rpmi: libgcrypt20-1.8.4-alt2 sisyphus+229280.100.1.1 1557742126 installed <13>Feb 2 08:16:59 rpmi: libxslt-1.1.33-alt1 sisyphus+226936.100.1.1 1554820937 installed <13>Feb 2 08:16:59 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Feb 2 08:16:59 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Feb 2 08:16:59 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758819 installed <13>Feb 2 08:16:59 rpmi: python3-module-BeautifulSoup4-4.6.3-alt1 sisyphus+227474.1200.1.1 1555687950 installed <13>Feb 2 08:16:59 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Feb 2 08:16:59 groupadd[969258]: group added to /etc/group: name=_keytab, GID=499 <86>Feb 2 08:16:59 groupadd[969258]: group added to /etc/gshadow: name=_keytab <86>Feb 2 08:16:59 groupadd[969258]: new group: name=_keytab, GID=499 <13>Feb 2 08:16:59 rpmi: libkrb5-1.17.1-alt1 p9+242852.100.2.1 1576572639 installed <13>Feb 2 08:16:59 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Feb 2 08:16:59 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Feb 2 08:17:00 rpmi: python-modules-encodings-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-compiler-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-email-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-unittest-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-nis-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-modules-logging-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python-tools-2to3-2.7.16-alt1.M90P.1 p9+244933.100.1.1 1579867218 installed <13>Feb 2 08:17:00 rpmi: python3-module-vk_api-9.3.1-alt2.qa1 sisyphus+227536.1100.1.2 1555962842 installed <13>Feb 2 08:17:00 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.50247 + 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.50247 + 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.33326 + 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.67876 + 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.y23nVj 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.LL4n5Q 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 4.16user 0.40system 0:05.80elapsed 78%CPU (0avgtext+0avgdata 19256maxresident)k 0inputs+0outputs (0major+135847minor)pagefaults 0swaps 11.14user 3.06system 0:15.82elapsed 89%CPU (0avgtext+0avgdata 117060maxresident)k 280inputs+0outputs (0major+541148minor)pagefaults 0swaps