Bug 195962 - Rpmlint fails reading Source RPMs
Summary: Rpmlint fails reading Source RPMs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-19 23:10 UTC by Robert Scheck
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 0.77-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-30 09:25:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.