Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/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>2022-12-08 12:57:22 +0100
commit141eff4827bf2bc7c10f206ee8c34974d9bdb4af (patch)
tree6116654722ebbbc175d486000442b357e9dabbe9 /src/arch-nspawn.in
parentc4555688668a8d7a729661d24c361ba3f32198ea (diff)
arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo)
Diffstat (limited to 'src/arch-nspawn.in')
-rw-r--r--src/arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch-nspawn.in b/src/arch-nspawn.in
index 5707eda..ae50043 100644
--- a/src/arch-nspawn.in
+++ b/src/arch-nspawn.in
@@ -54,7 +54,7 @@ if (( ${#cache_dirs[@]} == 0 )); then
fi
# shellcheck disable=2016
-host_mirrors=($(pacman-conf --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=($(pacman-conf --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\2#'))
for host_mirror in "${host_mirrors[@]}"; do
if [[ $host_mirror == *file://* ]]; then