mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-15 10:33:54 +01:00
Merge branch '231-bugfix-in-version_lt' into 'master'
Resolve "bugfix in version_lt" Closes #231 See merge request Pmodules/src!208
This commit is contained in:
commit
c3e9047f78
1 file changed
+8
-1
@@ -253,7 +253,14 @@ pbuild::version_compare () {
|
||||
readonly -f pbuild::version_compare
|
||||
|
||||
pbuild::version_lt() {
|
||||
pbuild::version_compare "$1" "$2"
|
||||
if (( $# == 1 )); then
|
||||
local vers1="${V_PKG}"
|
||||
local vers2="$1"
|
||||
else
|
||||
local vers1="$1"
|
||||
local vers2="$2"
|
||||
fi
|
||||
pbuild::version_compare "${vers1}" "${vers2}"
|
||||
(( $? == 2 ))
|
||||
}
|
||||
readonly -f pbuild::version_lt
|
||||
|
||||
Reference in new issue
Block a user