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

[cli] Use of version_lt function instead of less_than function #5141

Merged
merged 1 commit into from
May 19, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented May 19, 2017

What does this PR do?

less_than is not working with for example “5.9.1” and “5.10.0”, 5.9.0 being said to be a greater version

bash-4.3# version_lt "5.9.0" "5.10.1"
—> 0

bash-4.3# less_than "5.9.0" "5.10.1"
—> 1

bash-4.3# less_than "5.6" "5.8"
—> 0

note: version_lt is a less and equals method, so we need to exclude the condition : tag == base version

What issues does this PR fix or reference?

#5140

Changelog

Fix comparing versions in the check of newer docker CLI versions.

Release Notes

CLI: Fixed comparing versions in the check of newer docker CLI versions.

Docs PR

N/A (bug)

Change-Id: I33417f012c193416bfb746df125c19e92a868b4e
Signed-off-by: Florent BENOIT [email protected]

less_than is not working with for example “5.9.1” and “5.10.0”, 5.9.0 being said to be a greater version

bash-4.3# version_lt "5.9.0" "5.10.1"
—> 0

bash-4.3# less_than "5.9.0" "5.10.1"
—> 1

bash-4.3# less_than "5.6" "5.8"
—> 0

Change-Id: I33417f012c193416bfb746df125c19e92a868b4e
note: version_lt is a less and equals method, so we need to exclude the condition : tag == base version
Signed-off-by: Florent BENOIT <[email protected]>
@benoitf benoitf added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. labels May 19, 2017
@benoitf benoitf added this to the 5.11.0 milestone May 19, 2017
@benoitf benoitf self-assigned this May 19, 2017
@benoitf benoitf added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label May 19, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label May 19, 2017
@benoitf benoitf merged commit 63b440a into master May 19, 2017
@benoitf benoitf deleted the che#5140 branch May 19, 2017 15:18
@codenvy-ci
Copy link

JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
less_than is not working with for example “5.9.1” and “5.10.0”, 5.9.0 being said to be a greater version

bash-4.3# version_lt "5.9.0" "5.10.1"
—> 0

bash-4.3# less_than "5.9.0" "5.10.1"
—> 1

bash-4.3# less_than "5.6" "5.8"
—> 0

Change-Id: I33417f012c193416bfb746df125c19e92a868b4e
note: version_lt is a less and equals method, so we need to exclude the condition : tag == base version
Signed-off-by: Florent BENOIT <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants