abrt 1.1.1 detected a crash. architecture: x86_64 cmdline: /usr/bin/python /usr/bin/fedpkg new-sources squid-3.1.6.tar.bz2 squid-3.1.6.tar.bz2.asc component: fedora-packager executable: /usr/bin/fedpkg kernel: 2.6.33.6-147.fc13.x86_64 package: fedora-packager-0.5.1.0-1.fc13 reason: __init__.py:70:_hash_file:IOError: [Errno 2] No such file or directory: 'squid-3.1.6.tar.bz2.asc' release: Fedora release 13 (Goddard) backtrace ----- __init__.py:70:_hash_file:IOError: [Errno 2] No such file or directory: 'squid-3.1.6.tar.bz2.asc' Traceback (most recent call last): File "/usr/bin/fedpkg", line 959, in <module> args.command(args) File "/usr/bin/fedpkg", line 540, in new_sources mymodule.upload(args.files, replace=args.replace) File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 1281, in upload file_hash = _hash_file(f, self.lookasidehash) File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 70, in _hash_file input = open(file, 'rb') IOError: [Errno 2] No such file or directory: 'squid-3.1.6.tar.bz2.asc' Local variables in innermost frame: hashtype: 'md5' sum: <md5 HASH object @ 0x1d1db70> file: 'squid-3.1.6.tar.bz2.asc' How to reproduce ----- 1.fedpkg new-sources somenonexistingfile 2. 3.
Created attachment 435910 [details] File: backtrace
Just need to trap this error.
Package: fedora-packager-0.5.1.0-1.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. fedpkg clone project 2. fedpkg new-sources project 3. Comment ----- I forgot the -version.tar.gz while running the new-sources command so of course I get a IOError.
Package: fedora-packager-0.5.1.0-1.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. fedpkg new-sources <wrong_file_name> Comment ----- The excetpion should be handled and not just let fedpkg to die with an exception.
Fixed this in fedpkg.py.
python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-1.el5
fedora-packager-0.5.1.2-1.fc14 has been submitted as an update for Fedora 14. http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc14
fedora-packager-0.5.1.2-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc13
fedora-packager-0.5.1.2-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-1.fc12
fedora-packager-0.5.1.2-2.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update fedora-packager'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/fedora-packager-0.5.1.2-2.fc13
fedora-packager-0.5.1.2-2.el5, python-kitchen-0.2-0.1.a2.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update fedora-packager python-kitchen'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-kitchen-0.2-0.1.a2.el5,fedora-packager-0.5.1.2-2.el5
fedora-packager-0.5.1.2-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
fedora-packager-0.5.1.2-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
fedora-packager-0.5.1.2-2.el5, python-kitchen-0.2-0.1.a2.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
fedora-packager-0.5.1.2-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.