summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-02 11:25:54 +0200
committerErich Eckner <git@eckner.net>2019-09-13 09:22:11 +0200
commitaf344ba27a302c1d51a780cfed277fad8356e1e8 (patch)
treef20313ddf841110867305c9efd68eb02ff800c13 /arch-nspawn.in
parent4ff845233f4cdcb8e508fec8517e9ac7227ab3ce (diff)
downloaddevtools32-af344ba27a302c1d51a780cfed277fad8356e1e8.tar.xz
arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo)
Diffstat (limited to 'arch-nspawn.in')
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in
index b251756..a552dea 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -63,7 +63,7 @@ if (( ${#cache_dirs[@]} == 0 )); then
fi
# shellcheck disable=2016
-host_mirrors=($($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#'))
+host_mirrors=($($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#;t;s#(.*/)[^/]+/extra$#\1$arch/$repo#'))
while read -r line; do
mapfile -t lines < <($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" \