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>2019-04-02 11:25:54 +0200
committerErich Eckner <git@eckner.net>2019-04-02 11:25:54 +0200
commitec2653a8c29749de77684764bc232691cf13c6ed (patch)
treefe9e9e76f99d09343237a027be2edac20acf0234 /arch-nspawn.in
parent90f960a2484ce7be10a572f66d962ca0e3759de5 (diff)
arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo)v20190402
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 1dd0e49..ee5b060 100644
--- a/arch-nspawn.in
+++ b/arch-nspawn.in
@@ -62,7 +62,7 @@ fi
pacconf_cmd=$(command -v pacman-conf || command -v pacconf)
# shellcheck disable=2016
-host_mirrors=($($pacconf_cmd --conf "$pac_conf" --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#'))
+host_mirrors=($($pacconf_cmd --conf "$pac_conf" --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#;t;s#(.*/)[^/]+/extra/[^/]+#\1$arch/$repo#'))
# {{{ functions
build_mount_args() {