aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-exit-with-success-if-arch-is-disabled.patch
blob: 362ae60e488ca129fe7f50fcd085d5c7ecd775c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 1d291c47cd4ace2f97671a464c148ad4a138fce8 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 25 Jul 2017 07:06:06 +0000
Subject: [PATCH] abuild: exit with success if arch is disabled

the set -e made script exit early
---
 abuild.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/abuild.in b/abuild.in
index f935454..95e7a46 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2247,8 +2247,7 @@ index() { update_abuildrepo_index; }
 
 all() {
 	if ! [ -n "$force" ]; then
-		check_arch
-		if [ $? -ne 0 ]; then
+		if ! check_arch; then
 			echo "Package not available for the target architecture ($CARCH). Aborting."
 			return 0
 		fi
-- 
2.13.2