From ec2653a8c29749de77684764bc232691cf13c6ed Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 2 Apr 2019 11:25:54 +0200 Subject: arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo) --- arch-nspawn.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3-70-g09d2