From 753a8118d557e59062d6d310922295c561ac3e82 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Mon, 2 Jul 2018 11:03:05 -0300 Subject: Use the case-sensitive string when searching for the dependency under /Programs --- bin/ThirdPartyInstaller | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/ThirdPartyInstaller b/bin/ThirdPartyInstaller index 1aae10b..13b55e1 100755 --- a/bin/ThirdPartyInstaller +++ b/bin/ThirdPartyInstaller @@ -400,7 +400,7 @@ function lookup_pkgname() { echo "$(basename $recipeurl | sed 's,\(.*\)--.*--.*,\1,g')" && return 0 fi - # Query the remote RPM database for $pkgname + # Query the remote database for $pkgname Log_Normal "Searching the remote $(thirdparty_backend) database for the package hosting $pkgname" local arch=$(thirdparty_arch "$inputfile") local distro=$(thirdparty_distribution_name "$inputfile") @@ -411,8 +411,6 @@ function lookup_pkgname() { echo "$depname" && return 0 fi - # TODO Query the remote DEB database for $pkgname - return 1 } @@ -543,10 +541,11 @@ then do depname=$(echo "$line" | awk {'print $1'}) depurl=$(echo "$line" | awk {'print $3'}) - if ! [ -d "$goboPrograms/$depname" ] + programname="$(GuessProgramCase $depname)" + if ! [ -d "$goboPrograms/$programname" ] then - Log_Normal "Installing dependency $depurl" - $install_cmd -n "$depname" "$depurl" + Log_Normal "Installing dependency $depname from $depurl" + bash -c "$install_cmd -n $depname $depurl" fi done fi -- cgit v1.1