mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02: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:
@@ -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