line=$( apk info -e "$pkg_name" 2>/dev/null ||true)
line=$( apk info -e "$pkg_name" 2>/dev/null ||true)
if[ -n "$line"];then
if[ -n "$line"];then
pkg_prefix="${pkg_name}-"
base=${line%-r[0-9]*}
ver=${base##*-}
case"$line" in
case"$line" in
"$pkg_prefix"*)
*-r[0-9]*)
ver=${line#"$pkg_prefix"}
echo -n "$ver${line#$base}"
;;
;;
*)
*)
ver=${line##*-}
echo -n "$ver"
;;
;;
esac
esac
echo -n "$ver"
return0
return0
fi
fi
fi
fi
@ -106,7 +106,7 @@ function normalize_version
local base
local base
local major minor rel
local major minor rel
case"$ver" in
case"$ver" in
*-r*)
*-r[0-9]*)
rel="${ver##*-r}"
rel="${ver##*-r}"
base="${ver%-r*}"
base="${ver%-r*}"
;;
;;
@ -356,6 +356,10 @@ if [ "$opt_update" != "" ]; then
echo"ERROR: downloaded package is incorrect! (size = $ZAP_PKG_SZ)"
echo"ERROR: downloaded package is incorrect! (size = $ZAP_PKG_SZ)"
return216
return216
fi
fi
if ! command -v unzip >/dev/null 2>&1;then
echo"ERROR: package \"upzip\" not installed!"
return218
fi
unzip -q "$ZAP_PKG_FN" -d $ZAP_PKG_DIR
unzip -q "$ZAP_PKG_FN" -d $ZAP_PKG_DIR
rm -f "$ZAP_PKG_FN"
rm -f "$ZAP_PKG_FN"
if["$PKG_MGR"="apk"];then
if["$PKG_MGR"="apk"];then
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.