Bug 1201375
Summary: | incorrect results from rpmdev-vercmp with some filenames | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pat Riehecky <riehecky> |
Component: | rpmdevtools | Assignee: | Ville Skyttä <ville.skytta> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | ajb, bugs.michael, csieh, kevin, misterbonnie, qe-baseos-security, toracat, twoerner, ville.skytta |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1201314 | Environment: | |
Last Closed: | 2015-03-12 16:03:16 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: |
Description
Pat Riehecky
2015-03-12 15:22:57 UTC
That's an usage error, rpmdev-vercmp takes EVR strings as arguments, not NVR strings as in your example (so you should be calling "rpmdev-vercmp 1.2-4.el6 1.2.3-5.el6", leaving out the "asdf-" part). Since rpmdevtools 8.5 vercmp emits a warning about this: $ rpmdev-vercmp asdf-1.2-4.el6 asdf-1.2.3-5.el6 WARNING: hyphen in release 1.2-4.el6 rpmdev-vercmp <epoch1> <ver1> <release1> <epoch2> <ver2> <release2> rpmdev-vercmp <EVR1> <EVR2> rpmdev-vercmp # with no arguments, prompt Exit status is 0 if the EVR's are equal, 11 if EVR1 is newer, and 12 if EVR2 is newer. Other exit statuses indicate problems. WARNING: hyphen in release 1.2.3-5.el6 rpmdev-vercmp <epoch1> <ver1> <release1> <epoch2> <ver2> <release2> rpmdev-vercmp <EVR1> <EVR2> rpmdev-vercmp # with no arguments, prompt Exit status is 0 if the EVR's are equal, 11 if EVR1 is newer, and 12 if EVR2 is newer. Other exit statuses indicate problems. asdf-1.2-4.el6 > asdf-1.2.3-5.el6 |