summaryrefslogtreecommitdiff
path: root/archPackagesUpdate
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-06 08:55:10 +0200
committerErich Eckner <git@eckner.net>2017-10-06 08:55:10 +0200
commit97cc8773be04a9858e39f6244555a1cb2bcd3033 (patch)
tree183a60de5e483bd067a6cae24948e89fe5224811 /archPackagesUpdate
parentfd626078b62816e90e80091e03637d1f0f856a81 (diff)
downloadarchlinuxewe-97cc8773be04a9858e39f6244555a1cb2bcd3033.tar.xz
archPackagesUpdate: strengere Architekturpruefung
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-xarchPackagesUpdate10
1 files changed, 6 insertions, 4 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index b49fc5cc7..8f0912be4 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -453,8 +453,7 @@ then
rm -f ${paket}-*-${arch}.pkg.tar.xz*
rm -rf src pkg
- if [ "${arch}" == "i686" ]
- then
+ if [ "${arch}" = 'i686' ]; then
# 32-bit is built in chroot /opt/arch32
(
${cleanCache} && \
@@ -468,8 +467,8 @@ then
) | \
chrootUnpriv 32
err[${i}]=$?
- else
- # 64-bit is built in chroot /opt/arch64
+ elif [ "${arch}" = 'x86_64' ] || [ "${arch}" = 'any' ]; then
+ # 64-bit and any is built in chroot /opt/arch64
(
${cleanCache} && \
echo 'sudo pacman -Sc --noconfirm && \'
@@ -482,6 +481,9 @@ then
) | \
chrootUnpriv 64
err[${i}]=$?
+ else
+ printf 'unbekannte Architektur "%s"\n' "${arch}"
+ err[${i}]=128
fi
if [ ${err[${i}]} -eq 0 ]
then