From c8f3bda01167a2271ba2c6969b0fbcd80f24d272 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 27 Dec 2019 21:16:13 +0100 Subject: update-archlinux32-package: do not append architectures iff arch=(any) --- update-archlinux32-package | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'update-archlinux32-package') diff --git a/update-archlinux32-package b/update-archlinux32-package index 92afa57..7d6da07 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -217,7 +217,7 @@ case ${update_path} in ssh arch32-test ' cd "'"${pkgname}"'" cat >> PKGBUILD - echo "arch+=(i686 pentium4)" >> PKGBUILD + echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD makepkg -g ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" \ | sed -n "$( @@ -256,7 +256,7 @@ case ${update_path} in | ssh arch32-test ' cd "'"${pkgname}"'" cat > PKGBUILD - echo "arch+=(i686 pentium4)" >> PKGBUILD + echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD makepkg --verifysource '; then >&2 echo 'something went wrong' @@ -288,7 +288,7 @@ case ${update_path} in sums=$( ssh arch32-test ' cd "'"${pkgname}"'" - echo "arch+=(i686 pentium4)" >> PKGBUILD + echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD makepkg -g ' \ | sed ' @@ -308,7 +308,7 @@ case ${update_path} in if ! ssh arch32-test ' cd "'"${pkgname}"'" cat > PKGBUILD - echo "arch+=(i686 pentium4)" >> PKGBUILD + echo '"'"'[ "${arch[0]}" = any ] || arch+=(i686 pentium4)'"'"' >> PKGBUILD makepkg --verifysource ' < "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"; then >&2 echo 'something went wrong' -- cgit v1.2.3