From 4f84619c5987d87d91e986092f4eafd90000bd9d Mon Sep 17 00:00:00 2001 From: Connor Behan Date: Fri, 1 Mar 2013 21:21:10 -0800 Subject: [devtools][PATCH] Use pristine pacman.conf to get preferred mirror Content-Type: text/plain; charset="utf-8" The user's own pacman.conf can be problematic if 'devtools' is part of IgnorePkg. This resulted in the chroot having an empty mirrorlist and therefore a broken build. Signed-off-by: Connor Behan --- mkarchroot.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkarchroot.in b/mkarchroot.in index 20de5e6..4baf03a 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -72,7 +72,7 @@ else cache_dirs=(${cache_dir}) fi -host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#') +host_mirror=$(pacman --config /usr/share/devtools/pacman-extra.conf -Sddp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#') if echo "${host_mirror}" | grep -q 'file://'; then host_mirror_path=$(echo "${host_mirror}" | sed -E 's#file://(/.*)/\$repo/os/\$arch#\1#g') fi -- 1.8.1.4