osxcross-macports: improve resolving package dependencies

This commit is contained in:
Thomas Pöchtrager 2014-12-26 11:17:38 +01:00
parent 07f8c01f91
commit ba16479659

View File

@ -275,7 +275,8 @@ installPkg()
if [ -z "$pkgurl" ]; then
local oldpkgname=$pkgname
pkgname=$(echo "$pkgname" | cut -f1 -d'-')
local tmp=$(echo "$pkgname" | awk -F'-' '{print $NF}')
[ -n "$tmp" ] && pkgname=${pkgname/-$tmp/}
if [ "$pkgname" != "$oldpkgname" ]; then
echo "trying $pkgname instead ..."