Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/arch-nspawn.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-13 20:11:21 +0200
committerErich Eckner <git@eckner.net>2018-03-24 21:04:37 +0100
commite0e74e36b1eac33c9206e2654b17b16723cd3e22 (patch)
treee98ec51ec292172d74920929f317902164518375 /arch-nspawn.in
parent484c73df93bcd15e6c16ee270a801c999e64f248 (diff)
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 b394477..93d3bf7 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -59,7 +59,7 @@ else
fi
# shellcheck disable=2016
-host_mirror=$(pacman --cachedir /doesnt/exist -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
+host_mirror=$(pacman --cachedir /doesnt/exist -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#;s#(.*/)[^/]+/extra/[^/]+#\1$arch/$repo#')
# shellcheck disable=2016
[[ $host_mirror == *file://* ]] && host_mirror_path=$(echo "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g')