Bug 528535

Summary: rpmdiff prints empty line when no change between packages
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: manuel.wolfshant, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rpmlint-0.94-1.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-02 21:45:31 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 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.