summaryrefslogtreecommitdiff
path: root/bin/common-functions
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/common-functions
parent56f11fa626cb70b7c98833a1070e7f0fd26015a7 (diff)
downloadbuilder-7ce0ca4681bdb33e5809d6daa3f5e68aea4a2346.tar.xz
bin/common-functions: append_architectures: only add architecture if not "any"
Diffstat (limited to 'bin/common-functions')
-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