summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 12:30:17 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-06-08 12:30:17 +0200
commit86492306de908f13d5e43921fec1406ae53f7e37 (patch)
tree17eebf36ff026dd2afde3fc6af3b527b09a2d13a
parent249205486a837399b9675cb5fc93de8588e83523 (diff)
downloaddevtools-86492306de908f13d5e43921fec1406ae53f7e37.tar.xz
fixed wrongly-merged host_mirrors computation in 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 11af616..6fbed18 100644
--- a/src/arch-nspawn.in
+++ b/src/arch-nspawn.in
@@ -61,7 +61,7 @@ if (( ${#cache_dirs[@]} == 0 )); then
fi
# shellcheck disable=2016
-host_mirrors=($(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