aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 19:40:27 -0200
committerLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 19:40:27 -0200
commit78636285caf7dc87545f2630d4a218e65add7bb0 (patch)
treecaeb48ed454edfcd9d98eabf632645a193a51588
parenta58c78b9ebe743b0add0d2ed2fd1900a827e54c1 (diff)
downloadThirdPartyInstallers-78636285caf7dc87545f2630d4a218e65add7bb0.tar.xz
Fixes typo on case-insensitive comparison test;
Improve detection of path-based library dependencies.
-rwxr-xr-xbin/InstallPackage-RPM8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/InstallPackage-RPM b/bin/InstallPackage-RPM
index 7b67266..5823287 100755
--- a/bin/InstallPackage-RPM
+++ b/bin/InstallPackage-RPM
@@ -207,7 +207,7 @@ function populate_dependencies() {
then echo "$depinfo"
else echo "# Unresolved dependency: $dependency"
fi
- elif echo "$dependency" | grep -q "^lib.*\.so*"
+ elif echo "$dependency" | grep -q "^lib.*\.so*\|*\.so\.*"
then
libname=$(echo "$dependency" | cut -d'(' -f1)
wantedsymbol=$(echo "$dependency" | cut -d'(' -f2 | cut -d')' -f1)
@@ -384,10 +384,10 @@ function lookup_pkgname() {
local pkgname=$(echo "$dependency" | cut -d'(' -f1)
# Do we have a GoboLinux package installed with a matching name?
- for testname in $(ls $goboPrograms/*)
+ for testname in $(ls $goboPrograms/)
do
- # Case-insensitive omparison (requires Bash 4)
- if [ "${testname,,}" = "{$pkgname,,}" ]
+ # Case-insensitive comparison (requires Bash 4)
+ if [ "${testname,,}" = "${pkgname,,}" ]
then
echo "$pkgname" && return 0
fi