summaryrefslogtreecommitdiffstats
path: root/abuild.in
diff options
context:
space:
mode:
authorLeslie P. Polzer <polzer@port-zero.com>2013-11-10 15:56:40 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-15 16:04:04 +0000
commitb4fb3c6a81f974709821ae2b12ee3dd772730ff3 (patch)
tree553202c1281cc4fe35dc9215b419694a3484092e /abuild.in
parentef0d32d15a76e19d77554e89cb677e62d7c49032 (diff)
downloadabuild-b4fb3c6a81f974709821ae2b12ee3dd772730ff3.tar.bz2
abuild-b4fb3c6a81f974709821ae2b12ee3dd772730ff3.tar.xz
abuild: print a message if aborting due to architecture mismatch.
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index beb8e57..672bb72 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1764,7 +1764,11 @@ uninstalldeps() { undeps; }
all() {
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
fi
if up2date && [ -z "$force" ]; then