Bug 705970 - RFE: make rpmdev-diff also diff requires and provides lists
Summary: RFE: make rpmdev-diff also diff requires and provides lists
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdevtools
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 03:37 UTC by Jose Pedro Oliveira
Modified: 2011-05-19 19:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 19:29:38 UTC
Type: ---


Attachments (Terms of Use)

Description Jose Pedro Oliveira 2011-05-19 03:37:02 UTC
Description of problem:
Please add options and code to rpmdev-diff for diffing the requires and provides list of packages.


Version-Release number of selected component (if applicable):
rpmdevtools-7.5


Additional info:

Some quick examples of bash code:

$ diff <(rpm -qp --provides perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm) <(rpm -qp --provides perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm)
3c3
< perl-HTTP-Server-Simple-PSGI = 0.14-2.fc14
---
> perl-HTTP-Server-Simple-PSGI = 0.14-2.fc15



diff <(rpm -qp --requires perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm) <(rpm -qp --requires perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm)
2a3
> perl(HTTP::Server::Simple::CGI)  
9d9
< rpmlib(VersionedDependencies) <= 3.0.3-1

Comment 1 Ville Skyttä 2011-05-19 19:29:38 UTC
rpmdiff from the rpmlint package already does that, I don't see a reason to duplicate the functionality in rpmdev-diff.

$ rpmdiff perl-HTTP-Server-Simple-PSGI-0.14-2.fc14.noarch.rpm perl-HTTP-Server-Simple-PSGI-0.14-2.fc15.noarch.rpm
removed     REQUIRES rpmlib(VersionedDependencies) <= 3.0.3-1
added       REQUIRES perl(HTTP::Server::Simple::CGI)  
..........T /usr/share/doc/perl-HTTP-Server-Simple-PSGI-0.14
..........T /usr/share/man/man3/HTTP::Server::Simple::PSGI.3pm.gz
removed     /usr/share/perl5/HTTP
removed     /usr/share/perl5/HTTP/Server
removed     /usr/share/perl5/HTTP/Server/Simple
removed     /usr/share/perl5/HTTP/Server/Simple/PSGI.pm
added       /usr/share/perl5/vendor_perl/HTTP
added       /usr/share/perl5/vendor_perl/HTTP/Server
added       /usr/share/perl5/vendor_perl/HTTP/Server/Simple
added       /usr/share/perl5/vendor_perl/HTTP/Server/Simple/PSGI.pm


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