arch-nspawn: Work around pacman master returning file-URLs from the cache
This commit is contained in:
parent
69a3a0e7c0
commit
eb6b0e3f11
|
@ -53,7 +53,7 @@ else
|
|||
cache_dirs=("$cache_dir")
|
||||
fi
|
||||
|
||||
host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
|
||||
host_mirror=$(pacman --cachedir /doesnt/exist -Sddp extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
|
||||
[[ $host_mirror == *file://* ]] && host_mirror_path=$(echo "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g')
|
||||
|
||||
# {{{ functions
|
||||
|
|
Loading…
Reference in New Issue