Bug 953203

Summary: [rfe] compare packages by nvra
Product: [Fedora] Fedora Reporter: Martin Cermak <mcermak>
Component: hawkeyAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: dnf-0.3.4-1.git03fd687.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-22 03:41:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 953204, 953205    

Description Martin Cermak 2013-04-17 15:44:27 UTC
[RFE] Please, provide a functionality for comparing two packages according to
their NVRA and backport it to hawkey.fc19 down to hawkey.fc17.

Comment 1 Ales Kozumplik 2013-04-17 15:53:40 UTC
this is of course supported for Package objects as found in the Sack, but you probably want to be able to compare two NVRAs (or just version-release?) as strings directly.

Comment 2 Martin Cermak 2013-04-18 07:37:41 UTC
Exactly. V-R is sufficient.

Comment 3 Ales Kozumplik 2013-04-18 15:06:19 UTC
Commits a110f84 and 9578680 allow you to compare NEVRA objects by their EVRs. See the test:

https://github.com/akozumpl/hawkey/blob/master/tests/python/tests/test_nevra.py#L5

will be included in hawkey-0.3.11

Comment 4 Fedora Update System 2013-05-02 14:52:33 UTC
hawkey-0.3.11-1.gitffe0dac.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/hawkey-0.3.11-1.gitffe0dac.fc19

Comment 5 Fedora Update System 2013-05-03 15:18:46 UTC
Package dnf-0.3.4-1.git03fd687.fc19, hawkey-0.3.11-1.gitffe0dac.fc19, librepo-0.0.4-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.3.4-1.git03fd687.fc19 hawkey-0.3.11-1.gitffe0dac.fc19 librepo-0.0.4-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7332/dnf-0.3.4-1.git03fd687.fc19,librepo-0.0.4-1.fc19,hawkey-0.3.11-1.gitffe0dac.fc19
then log in and leave karma (feedback).

Comment 6 Martin Cermak 2013-05-13 15:20:25 UTC
Works for me. Thanks for the fix!

Comment 7 Fedora Update System 2013-05-22 03:41:09 UTC
dnf-0.3.4-1.git03fd687.fc19, hawkey-0.3.11-1.gitffe0dac.fc19, librepo-0.0.4-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.