summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-27 21:16:13 +0100
committerErich Eckner <git@eckner.net>2019-12-27 21:16:13 +0100
commitc8f3bda01167a2271ba2c6969b0fbcd80f24d272 (patch)
tree9ce1592d0848ca488378dfecffcbc5c3603f7cd8
parentdb5bea75329559e61c40ddb1c90a1dcf7e22fb31 (diff)
downloaddevops-c8f3bda01167a2271ba2c6969b0fbcd80f24d272.tar.xz
update-archlinux32-package: do not append architectures iff arch=(any)
-rwxr-xr-xupdate-archlinux32-package8
1 files changed, 4 insertions, 4 deletions
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'