Description of problem:
As seen in the 20140813 Rawhide update:
$ rpm -q iwl5000-firmware
$ rpmdev-vercmp iwl5000-firmware-126.96.36.199_1-38.fc21.1 iwl5000-firmware-188.8.131.52-39.fc22.1
iwl5000-firmware-184.108.40.206_1-38.fc21.1 < iwl5000-firmware-220.127.116.11-39.fc22.1
So that's an upgrade, right? But yum distro-sync disagrees:
iwl5000-firmware noarch 18.104.22.168-39.fc22.1 rawhide 293 k
Version-Release number of selected component (if applicable):
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
yum and rpmdev-vercmp disagree.
yum and rpmdev-vercmp agree.
I don't think there's anything to do about this. When rpmdev-vercmp is splitting the string "iwl5000-firmware-22.214.171.124_1-38.fc21.1" to name, version and release they become:
...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.