Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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