Let osxcross-macports pick up noarch packages

Some packages (such as the qt5 metapackage) are not architecture-specific - "noarch" versions should work on all architectures.
This commit is contained in:
Stefan Löffler 2016-02-28 12:08:30 -05:00
parent 9d98be2cd0
commit 43864e6d8f

View File

@ -264,6 +264,9 @@ getPkgUrl()
done
local pkg=$(echo "$pkgs" | grep $OSXVERSION | grep $ARCH | uniq | tail -n1)
if [ -z "$pkg" ]; then
pkg=$(echo "$pkgs" | grep $OSXVERSION | grep "noarch" | uniq | tail -n1)
fi
verboseMsg " selected: $pkg"