Bug 953203 - [rfe] compare packages by nvra
Summary: [rfe] compare packages by nvra
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hawkey
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 953204 953205
TreeView+ depends on / blocked
 
Reported: 2013-04-17 15:44 UTC by Martin Cermak
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version: dnf-0.3.4-1.git03fd687.fc19
Clone Of:
Environment:
Last Closed: 2013-05-22 03:41:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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