abuild: print a message if aborting due to architecture mismatch.

This commit is contained in:
Leslie P. Polzer 2013-11-10 15:56:40 +01:00 committed by Natanael Copa
parent ef0d32d15a
commit b4fb3c6a81

View File

@ -1764,7 +1764,11 @@ uninstalldeps() { undeps; }
all() { all() {
if ! [ -n "$force" ]; then if ! [ -n "$force" ]; then
check_arch || return 0 check_arch
if [ $? -ne 0 ]; then
echo "Package not available for the target architecture ($CARCH). Aborting."
return 0
fi
check_libc || return 0 check_libc || return 0
fi fi
if up2date && [ -z "$force" ]; then if up2date && [ -z "$force" ]; then