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

Fix the 1.8.9 version check #117

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Conversation

skitt
Copy link
Contributor

@skitt skitt commented Nov 17, 2023

The current version check fails for any version where the patch version is 9 or greater. 1.4.21 is still in use e.g. on RHEL 7:

ipt.v1 == 1 && ipt.v2 <= 8 && ipt.v3 < 9

fails there because 21 >= 9.

To handle this, the check needs to distinguish ipt.v2 < 8 (v3 is not significant then) and ipt.v2 == 8 (v3 needs to be compared).

The current version check fails for any version where the patch
version is 9 or greater. 1.4.21 is still in use e.g. on RHEL 7:

    ipt.v1 == 1 && ipt.v2 <= 8 && ipt.v3 < 9

fails there because 21 >= 9.

To handle this, the check needs to distinguish ipt.v2 < 8 (v3 is not
significant then) and ipt.v2 == 8 (v3 needs to be compared).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
Copy link
Collaborator

@squeed squeed left a comment

Choose a reason for hiding this comment

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

Hah, nice catch.

@squeed squeed merged commit 3a9906c into coreos:main Nov 30, 2023
5 checks passed
@skitt skitt deleted the fix-1.8.9-version-check branch November 30, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants