Bug 195962

Summary: Rpmlint fails reading Source RPMs
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: rpmlintAssignee: Ville Skyttä <scop>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.77-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-30 09:25:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2006-06-19 23:10:48 UTC
Description of problem:
Rpmlint fails reading Source RPMs:

$ rpmlint php-idn-1.1-6.src.rpm
E: php-idn devel-dependency php-devel
Traceback (most recent call last):
  File "/usr/share/rpmlint/rpmlint.py", line 250, in ?
    main()
  File "/usr/share/rpmlint/rpmlint.py", line 83, in main
    runChecks(pkg)
  File "/usr/share/rpmlint/rpmlint.py", line 138, in runChecks
    c.check(pkg)
  File "/usr/share/rpmlint/TagsCheck.py", line 554, in check
    if srpm[0:-8] == '%s-%s-%s' % (name, version, release):
TypeError: unsubscriptable object
$

Version-Release number of selected component (if applicable):
rpmlint-0.76-1.noarch

How reproducible:
Always, see above.

Actual results:
Rpmlint fails reading Source RPMs

Expected results:
I'm not expecting to work with Source RPMs, but a nice error message "Error: 
Source RPMs are NOT supported!" would be more friendly...

Checking whether a RPM package is Source RPM or not can be done using 
RPMTAG_SOURCERPM. Bug #195792 contains a link to jbj's announcement and how
it can be used.

Comment 1 Ville Skyttä 2006-06-20 06:33:56 UTC
rpmlint definitely supports checking source rpms, but apparently something has
changed in devel which breaks it.  Thanks for the heads up and the pointer, will
have a look.

Comment 2 Ville Skyttä 2006-06-20 18:07:34 UTC
Should be fixed upstream: http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1200

I don't have a rawhide box to test with, so it would be nice if you could try
downloading the supposedly fixed version and install it temporarily as
/usr/share/rpmlint/Pkg.py and see if it fixes the problem:
http://rpmlint.zarb.org/cgi-bin/trac.cgi/browser/trunk/Pkg.py?rev=1200&format=raw

Comment 3 Robert Scheck 2006-06-20 18:11:49 UTC
Yes fixes the problem and works here - thanks!

Comment 4 Ville Skyttä 2006-06-30 09:25:53 UTC
Fixed in 0.77-1