diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-25 12:20:55 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-25 12:20:55 (EST) |
commit | f7809b045500b65a754a3b42279c808f237b58a9 (patch) | |
tree | a206a6c572baaa247f407918eafa5e86f573c615 /src | |
parent | 6fb706ae404d97f00e1881a20c5cb13551caa857 (diff) |
oh-shlibdeps: Check for ob_qualify_package_name()
Support libopkbuild versions prior to 4.2.0.
Diffstat (limited to 'src')
-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 |