arch-nspawn: Work around pacman master returning file-URLs from the cache

This commit is contained in:
Jan Alexander Steffens (heftig) 2016-05-28 12:33:00 +02:00
parent 69a3a0e7c0
commit eb6b0e3f11
1 changed files with 1 additions and 1 deletions

View File

@ -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