Red Hat Bugzilla – Bug 680781
Aborts when SourceURL returns 404
Last modified: 2011-03-08 22:08:57 EST
Description of problem:
On the review request bug 679913, I noticed that rpmlint frequently
aborts when the source URL returns 404, like:
$ rpmlint ./ftop-1.0-2.fc16.src.rpm
ftop.src: W: invalid-url Source0: http://ftop.googlecode.com/files/ftop-1.0.tar.bz2 HTTP Error 404: Not Found
0 packages and 0 specfiles checked; 0 errors, 1 warnings.
Traceback (most recent call last):
File "/usr/bin/rpmlint", line 373, in <module>
File "/usr/bin/rpmlint", line 168, in main
File "/usr/bin/rpmlint", line 228, in runChecks
File "/usr/share/rpmlint/SpecCheck.py", line 142, in check
File "/usr/share/rpmlint/SpecCheck.py", line 545, in check_spec
clen = info.get("Content-Length")
AttributeError: 'NoneType' object has no attribute 'get'
Version-Release number of selected component (if applicable):
60%, seems to be depending on the condition of remote (googlecode)
Steps to Reproduce:
1. rpmlint ./ftop-1.0-2.fc16.src.rpm , the testcase now preserved
rpmlint should not abort even if the source URL returns 404
Already fixed in upstream post-1.1 svn:
* should fix your issue,
* was pushed to the Fedora 15 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpmlint-1.1-3.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).
rpmlint-1.1-3.fc15 has been pushed to the Fedora 15 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 rpmlint'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/rpmlint-1.1-3.fc15
rpmlint-1.1-3.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.