commit | 767a9256af05e98d8d838fba444f175b7273de70 | [log] [tgz] |
---|---|---|
author | David Howells <dhowells@redhat.com> | Mon Dec 21 15:22:07 2015 +0000 |
committer | David Howells <dhowells@redhat.com> | Mon Dec 21 15:28:57 2015 +0000 |
tree | 1db34cf97da76139b0905726ef6a2fb10fc7ef31 | |
parent | 1ef9e1583d6985935be2dd02851ec67e2ab7bc1d [diff] |
TEST: version_less_than() must compare releases if version same If the version parts of two x.y.z-r version strings are the same, version_less_than() must compare the release parts rather than defaulting to whatever the last return value happened to be. This can be tested with this: sh ./vercmp.sh 2.6.32-589.el6 2.6.32-592.el6.ppc64 Reversing the parameters should flip the output indication rather than leaving it the same. Signed-off-by: David Howells <dhowells@redhat.com>