Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-28 12:43:40 +0200
committerErich Eckner <git@eckner.net>2017-08-28 12:43:40 +0200
commit7ce0ca4681bdb33e5809d6daa3f5e68aea4a2346 (patch)
tree1926d3a1354c38d47d9d2d2dbeab35b0712b9c43 /bin
parent56f11fa626cb70b7c98833a1070e7f0fd26015a7 (diff)
bin/common-functions: append_architectures: only add architecture if not "any"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 4befce0..9b8f483 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -547,7 +547,11 @@ insert_break_loops_orders() {
append_architectures() {
local PKGBUILD="$1"
- sed -i '/^arch=(/s/(/(i686 /' "${PKGBUILD}"
+ sed -i '
+ /^arch=[^#]*any/!{
+ /^arch=(/s/(/(i686 /
+ }
+ ' "${PKGBUILD}"
}
# find_newest_of_git_revisions