aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gobolinux.org>2018-07-04 20:51:57 -0300
committerLucas C. Villa Real <lucasvr@gobolinux.org>2018-07-04 20:51:57 -0300
commitda2b78e3a64b32ff66d58d7b4e11cc1477e5060a (patch)
tree4d03f8635b176fee05fc941c086348fd25bc6bf7
parent5527557baeb25f610d0796de263ea4ac841658ef (diff)
downloadThirdPartyInstallers-da2b78e3a64b32ff66d58d7b4e11cc1477e5060a.tar.xz
Only search for symbols if needed
-rwxr-xr-xbin/ThirdPartyInstaller10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller
index f714f67b..122df20 100755
--- a/bin/ThirdPartyInstaller
+++ b/bin/ThirdPartyInstaller
@@ -351,9 +351,8 @@ function take_dependency_from_path() {
do
lookup_symbol "$depname" "$testversion" "$arch" "$symbol" && return 0
done
+ Log_Verbose "Symbol $symbol not found, will resort to $depname $depversion as fallback"
fi
-
- Log_Verbose "Symbol $symbol not found, will resort to $depname $depversion as fallback"
echo "$depname $depversion"
else
# We have a path, but we don't have a link to that file under /System/Index.
@@ -365,8 +364,11 @@ function take_dependency_from_path() {
depname=$(echo "$fullpath" | cut -d/ -f3)
testversion=$(echo "$fullpath" | cut -d/ -f4)
[ -z "$depversion" ] && depversion="$testversion"
- Log_Verbose "Looking for symbol on candidate file $candidate ($depname, $testversion)"
- lookup_symbol "$depname" "$testversion" "$arch" "$symbol" && return 0
+ if [ "$symbol" ]
+ then
+ Log_Verbose "Looking for symbol on candidate file $candidate ($depname, $testversion)"
+ lookup_symbol "$depname" "$testversion" "$arch" "$symbol" && return 0
+ fi
done
# We don't have a match. If we have a file name that satisfies the path but