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.
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.
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
Yes fixes the problem and works here - thanks!
Fixed in 0.77-1