Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

versionfmt/rpm: handle a tilde correctly #395

Merged
merged 1 commit into from
May 15, 2017

Conversation

knqyf263
Copy link
Contributor

I found a bug that the handling of tilde is incorrect.
So, the following tests will fail in TestParseAndCompare.

{"~", GREATER, "~~"},
{"2~", GREATER, "1"},

A tilde must sort before everything else (including the blank).
However, it is necessary to compare numbers or strings before the tilde.

Copy link
Contributor

@jzelinskie jzelinskie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a bunch. The RPM spec for versioning is very strange!

@jzelinskie jzelinskie merged commit f2f2134 into quay:master May 15, 2017
@knqyf263 knqyf263 deleted the handle_tilde branch May 16, 2017 00:29
@knqyf263
Copy link
Contributor Author

@jzelinskie Thanks!
I'm also struggling with RPM versioning at Vuls development.
Let's both do our best!

KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
versionfmt/rpm: handle a tilde correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants