Do not invoke apk if no .so files are found in .rpaths.

This commit is contained in:
David Yamnitsky 2021-12-28 04:12:50 +00:00
parent bc71314cc3
commit 3271c2ba55
1 changed files with 3 additions and 1 deletions

View File

@ -1427,7 +1427,9 @@ trace_apk_deps() {
if [ -f "$dir"/.rpaths ]; then
local so_files=$(find_so_files "$dir"/.rpaths $missing) \
|| return 1
deppkgs=$($APK $apkroot info --quiet --who-owns $so_files) || return 1
if [ ! -z $so_files ]; then
deppkgs=$($APK $apkroot info --quiet --who-owns $so_files) || return 1
fi
fi
for found in $deppkgs; do