index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-04-09 21:27:11 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2021-07-17 22:35:04 +0200 |
commit | 30ed6920c7e7962b7161bc2405c63e9a1ab95be2 (patch) | |
tree | 0812f1f411dcaed9ab7a1bfdb32918f58c066195 /archbuild.in | |
parent | 4602659068b528fd15428538c627a755d396d2ac (diff) |
-rw-r--r-- | archbuild.in | 7 |
diff --git a/archbuild.in b/archbuild.in index 5b98976..7cd65bd 100644 --- a/archbuild.in +++ b/archbuild.in @@ -17,6 +17,11 @@ else repo=${tag%-*} arch=${tag##*-} fi +if [[ -f "@pkgdatadir@/setarch-aliases.d/${arch}" ]]; then + read -r set_arch < "@pkgdatadir@/setarch-aliases.d/${arch}" +else + set_arch="${arch}" +fi chroots='/var/lib/archbuild' clean_first=false @@ -69,7 +74,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 "${arch}" mkarchroot \ + setarch "${set_arch}" mkarchroot \ -C "${pacman_config}" \ -M "${makepkg_config}" \ "${chroots}/${repo}-${arch}/root" \ |