summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2016-05-28 12:33:00 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2016-05-28 12:33:00 +0200
commiteb6b0e3f11279b6512b1469ff042d2982eaaeef4 (patch)
treee0bd3b464d0619158737339962a905ba3c9ea0a5
parent69a3a0e7c02ae754a01dd3139e9363604760d5e1 (diff)
downloaddevtools-eb6b0e3f11279b6512b1469ff042d2982eaaeef4.tar.gz
devtools-eb6b0e3f11279b6512b1469ff042d2982eaaeef4.tar.xz
arch-nspawn: Work around pacman master returning file-URLs from the cache
-rw-r--r--arch-nspawn.in2
1 files changed, 1 insertions, 1 deletions
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