Bug 528535 - rpmdiff prints empty line when no change between packages
Summary: rpmdiff prints empty line when no change between packages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-12 17:07 UTC by Kamil Páral
Modified: 2010-02-20 00:09 UTC (History)
3 users (show)

Fixed In Version: rpmlint-0.94-1.fc12
Clone Of:
Environment:
Last Closed: 2009-11-02 21:45:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2009-10-12 17:07:33 UTC
Description of problem:
When packages are not the same, rpmdiff prints differences, every difference on a single line. No line is empty.

When packages are the same (at least from rpmdiff's perspective), rpmdiff prints single empty line.

That's is not correct, in my opinion. It should not print anything in the second case. When there is some line printed, I expect something to be there.

As a matter of fact, my script, which I am building on top of rpmdiff, is crashing exactly because of this issue.

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

How reproducible:
always

Steps to Reproduce:
1. $ rpmdiff package.rpm package.rpm

Comment 1 Ville Skyttä 2009-10-13 19:04:01 UTC
Fixed upstream, but I suggest making your script more robust against unexpected input.  http://rpmlint.zarb.org/cgi-bin/trac.cgi/changeset/1664

Comment 2 Ville Skyttä 2009-11-02 21:45:31 UTC
Included in 0.92-1.

Comment 3 Fedora Update System 2010-01-25 23:28:42 UTC
rpmlint-0.93-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.93-2.fc12

Comment 4 Fedora Update System 2010-01-31 23:23:03 UTC
rpmlint-0.94-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/rpmlint-0.94-1.fc12

Comment 5 Fedora Update System 2010-02-20 00:09:31 UTC
rpmlint-0.94-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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