From eb6b0e3f11279b6512b1469ff042d2982eaaeef4 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Sat, 28 May 2016 12:33:00 +0200 Subject: arch-nspawn: Work around pacman master returning file-URLs from the cache --- arch-nspawn.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch-nspawn.in b/arch-nspawn.in index 357d950..e46b57f 100644 --- a/arch-nspawn.in +++ b/arch-nspawn.in @@ -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 -- cgit v1.2.3-24-g4f1b