diff options
author | Erich Eckner <git@eckner.net> | 2019-04-02 11:25:54 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-27 21:37:13 +0100 |
commit | 040d24a230236b20676984104147024d71e209f3 (patch) | |
tree | f1eedb6c6a1b58dee46fd88e7f573d0ced791ce0 | |
parent | 981570b42361b4d8d6c167478a690c1679d94d12 (diff) | |
download | devtools32-040d24a230236b20676984104147024d71e209f3.tar.xz |
arch-nspawn: also parse our mirror layout (http[s]://mirror.url/path/$arch/$repo)
-rw-r--r-- | arch-nspawn.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-nspawn.in b/arch-nspawn.in index 04d9a8d..08f24b7 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -64,7 +64,7 @@ if (( ${#cache_dirs[@]} == 0 )); then fi # shellcheck disable=2016 -host_mirrors=($($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" --repo extra Server 2> /dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')) +host_mirrors=($($pacconf_cmd --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#')) for host_mirror in "${host_mirrors[@]}"; do if [[ $host_mirror == *file://* ]]; then |