summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-02 11:25:54 +0200
committerErich Eckner <git@eckner.net>2019-06-16 14:32:13 +0200
commit1aabebf8f1335e1c435a92d0772414b3f6c31e98 (patch)
tree7456ca878a4496068fbe58baf53d03056c4b20cf
parent5284ae9c7461ce19ece4d526734648a0e8237758 (diff)
downloaddevtools-1aabebf8f1335e1c435a92d0772414b3f6c31e98.tar.xz
arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo)
-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..f217b1e 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() {