Bug 1129865 - rpmdev_vercmp vs. yum: underscore in version
Summary: rpmdev_vercmp vs. yum: underscore in version
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdevtools
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-13 19:49 UTC by Jerry James
Modified: 2014-08-14 08:36 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-14 08:36:55 UTC

Attachments (Terms of Use)

Description Jerry James 2014-08-13 19:49:42 UTC
Description of problem:
As seen in the 20140813 Rawhide update:

$ rpm -q iwl5000-firmware
$ rpmdev-vercmp iwl5000-firmware- iwl5000-firmware-
iwl5000-firmware- < iwl5000-firmware-

So that's an upgrade, right?  But yum distro-sync disagrees:
 iwl5000-firmware                                 noarch                        rawhide         293 k

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

How reproducible:

Steps to Reproduce:
1. Run the query shown above
2. Observe that rpmdev-vercmp considers it an upgrade
3. Observe that yum considers it a downgrade

Actual results:
yum and rpmdev-vercmp disagree.

Expected results:
yum and rpmdev-vercmp agree.

Additional info:

Comment 1 Ville Skyttä 2014-08-14 08:36:55 UTC
I don't think there's anything to do about this. When rpmdev-vercmp is splitting the string "iwl5000-firmware-" to name, version and release they become:

Name: iwl5000
Version: firmware

...which is correct but obviously (to a human) not what was intended and probably explains the rest of the results. yum has more precise info to work with, it doesn't have to parse the single string above into name, version and release but gets them separetely pre-parsed. rpmdev-vercmp has a mode where you can input name/version/release separately as well, I suppose that'd make it work like yum as that way it has the same info available.

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