summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-27 00:19:09 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-27 00:19:09 +0000
commit5725cd3a49176066a051636c2ec423799dcb856f (patch)
tree41f5e5fcd5b11a565575f74062e5081bf2b80537
parent0e0bfc35291d53705cc504a51420adbafa72a196 (diff)
downloadmidipix_build-5725cd3a49176066a051636c2ec423799dcb856f.tar.bz2
midipix_build-5725cd3a49176066a051636c2ec423799dcb856f.tar.xz
subr/pkg_install_libs.subr:pkgp_install_lib_check(): fixed.
-rw-r--r--subr/pkg_install_libs.subr7
1 files changed, 5 insertions, 2 deletions
diff --git a/subr/pkg_install_libs.subr b/subr/pkg_install_libs.subr
index 1894a2d0..61d87a56 100644
--- a/subr/pkg_install_libs.subr
+++ b/subr/pkg_install_libs.subr
@@ -4,13 +4,16 @@
pkgp_install_lib_check() {
local _so_path="${1}" _so_ver="${1##*.so}";
+ if [ -z "${_so_ver}" ]; then
+ return 1;
+ fi;
while [ -n "${_so_ver}" ]; do
if [ "${_so_ver#[0-9.]}" = "${_so_ver}" ]; then
- return 0;
+ return 1;
else
_so_ver="${_so_ver#[0-9.]}";
fi;
- done; return 1;
+ done; return 0;
};
pkgp_install_lib_link() {