5725cd subr/pkg_install_libs.subr:pkgp_install_lib_check(): fixed.

Authored and Committed by Lucio Andrés Illanes Albornoz (arab, vxp) 7 years ago
    subr/pkg_install_libs.subr:pkgp_install_lib_check(): fixed.
    
        
file modified
+5 -2
subr/pkg_install_libs.subr CHANGED
@@ -4,13 +4,16 @@
4
4
5
5
pkgp_install_lib_check() {
6
6
local _so_path="${1}" _so_ver="${1##*.so}";
7
+ if [ -z "${_so_ver}" ]; then
8
+ return 1;
9
+ fi;
7
10
while [ -n "${_so_ver}" ]; do
8
11
if [ "${_so_ver#[0-9.]}" = "${_so_ver}" ]; then
9
- return 0;
12
+ return 1;
10
13
else
11
14
_so_ver="${_so_ver#[0-9.]}";
12
15
fi;
13
- done; return 1;
16
+ done; return 0;
14
17
};
15
18
16
19
pkgp_install_lib_link() {