xbps-src/build-dependencies.sh: check for instead of

This commit is contained in:
John 2019-04-17 16:44:19 +02:00
parent 9ae512bbbb
commit edad3f9f9f
No known key found for this signature in database
GPG Key ID: 778558807E4FFC55

View File

@ -240,7 +240,7 @@ install_pkg_deps() {
continue
else
echo " [host] ${i}: not found."
if [ -z "$CROSS_BUILD" ]; then
if [ -z "$cross" ]; then
if [ "${_realpkg}" = "$targetpkg" ]; then
msg_error "${pkg}: [host] build loop detected: ${_realpkg} <-> ${targetpkg} [depends on itself]\n"
elif [ "${_realpkg}" = "$pkg" ]; then