support any_any macports packages

This commit is contained in:
Daniel Wolf 2023-10-16 17:35:32 -04:00
parent 2f60d1e90d
commit 362d90975b
No known key found for this signature in database
GPG Key ID: 59D70EC2E4AAB4D0

View File

@ -315,12 +315,20 @@ getPkgUrl()
grep "$pkgname-$pkgversion" | grep $OSXVERSION | grep "noarch" | \
uniq | tail -n1)
fi
if [ -z "$pkg" ]; then
pkg=$(echo "$pkgs" | \
grep "$pkgname-$pkgversion" | grep "any_any.noarch" | \
uniq | tail -n1)
fi
if [ -z "$pkg" ]; then
pkg=$(echo "$pkgs" | grep $OSXVERSION | grep $ARCH | uniq | tail -n1)
fi
if [ -z "$pkg" ]; then
pkg=$(echo "$pkgs" | grep $OSXVERSION | grep "noarch" | uniq | tail -n1)
fi
if [ -z "$pkg" ]; then
pkg=$(echo "$pkgs" | grep "any_any.noarch" | uniq | tail -n1)
fi
verboseMsg " selected: $pkg"