diff options
-rw-r--r-- | src/oh-shlibdeps.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/oh-shlibdeps.sh b/src/oh-shlibdeps.sh index 2edb275..f15f450 100644 --- a/src/oh-shlibdeps.sh +++ b/src/oh-shlibdeps.sh @@ -42,8 +42,14 @@ find_lib() for pkg in *.data/; do for dir in ${rtld_dirs}; do if [ -r "${pkg}/${dir}/${lib}" ]; then - pkg="$(ob_qualify_package_name "${pkg%.data/}" \ - "${OPK_HOST_ARCH}")" + if command -V ob_qualify_package_name \ + 1>/dev/null 2>/dev/null; then + pkg="$(ob_qualify_package_name \ + "${pkg%.data/}" \ + "${OPK_HOST_ARCH}")" + else + pkg="${pkg%.data/}" + fi printf '%s,\n' "${pkg}" return 0 fi |