From f9e251ba0f71a5805923ff2f4cbb2a3e1a14a32e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 10 Sep 2020 14:53:21 +0200 Subject: archbuild: allow empty setarch to skip running setarch at all --- archbuild.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archbuild.in b/archbuild.in index 73796ba..80d149a 100644 --- a/archbuild.in +++ b/archbuild.in @@ -22,6 +22,7 @@ else fi if [[ -f "@pkgdatadir@/setarch-aliases.d/${arch}" ]]; then read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${arch}" + [ -z "${set_arch}" ] && unset set_arch else set_arch="${arch}" fi @@ -99,7 +100,7 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then rm -rf --one-file-system "${chroots}/${repo}-${arch}" (umask 0022; mkdir -p "${chroots}/${repo}-${arch}") - setarch "${set_arch}" mkarchroot \ + ${set_arch:+setarch "${set_arch}"} mkarchroot \ -C "${pacman_config}" \ -M "${makepkg_config}" \ ${cache_dir} \ -- cgit v1.2.3-70-g09d2