Skip to content

RPM version comparison oddity with release field #398

Closed
@wagoodman

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:

  1. at least determine if this behavior is unexpected or not
  2. if there is a problem, fix it
  3. identify other cases that may exhibit similar behavior (and add them as tests)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions