Closed
Description
When taking a look at another RPM version-related investigation @luhring noticed the following oddity:
# this resolves to true
8.3.1-5.el8 < 0:8.3.1-5.el8.0.0
# this resolves to true
8.3.1-5.el8.0.0 > 0:8.3.1-5.el8
It appears that this could be falling back to string length (i.e. if the string is a subset of the other, then the longest string is "greater" than the other) --but I haven't verified this.
Both of these statements (I think) should resolve as "false". I've added these failing tests here: 138b1a2
This issue should:
- at least determine if this behavior is unexpected or not
- if there is a problem, fix it
- identify other cases that may exhibit similar behavior (and add them as tests)
Metadata
Assignees
Labels
Type
Projects
Status
Done
Activity