From f7809b045500b65a754a3b42279c808f237b58a9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 25 Dec 2020 12:20:55 -0500 Subject: oh-shlibdeps: Check for ob_qualify_package_name() Support libopkbuild versions prior to 4.2.0. --- 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 -- cgit v0.9.1