Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 2d12850d authored by gsell's avatar gsell
Browse files

libpbuild.bash: bugfix in version compare functions

parent 2f537795
No related branches found
No related tags found
1 merge request!99Resolve "libpbuild.bash: bugs in functions to compare versions"
...@@ -90,7 +90,7 @@ pbuild::version_lt() { ...@@ -90,7 +90,7 @@ pbuild::version_lt() {
pbuild::version_le() { pbuild::version_le() {
pbuild::version_compare "$1" "$2" pbuild::version_compare "$1" "$2"
local -i exit_code=$? local -i exit_code=$?
(( exit_code == 0 || exit_code = 2 )) (( exit_code == 0 || exit_code == 2 ))
} }
...@@ -98,7 +98,7 @@ pbuild::version_gt() { ...@@ -98,7 +98,7 @@ pbuild::version_gt() {
pbuild::version_compare "$1" "$2" pbuild::version_compare "$1" "$2"
(( $? == 1 )) (( $? == 1 ))
local -i exit_code=$? local -i exit_code=$?
(( exit_code == 0 || exit_code = 1 )) (( exit_code == 0 || exit_code == 1 ))
} }
pbuild::version_eq() { pbuild::version_eq() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment