[arch-projects] [devtools] [PATCH 1/1] arch-nspawn: get mirror url from chroot's pacman.conf

Jan Alexander Steffens jan.steffens at gmail.com
Sat Jul 15 09:46:14 UTC 2017


On Sat, Jul 15, 2017, 01:10 Luke Shumaker <lukeshu at lukeshu.com> wrote:

> On Fri, 14 Jul 2017 06:04:50 -0400,
> Christian Hesse wrote:
> > -host_mirror=$(pacman --cachedir /doesnt/exist -Sddp extra/devtools
> 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
> > +host_mirror=$(pacman --config
> "${pac_conf:-$working_dir/etc/pacman.conf}" --cachedir /doesnt/exist -Sddp
> extra/devtools 2>/dev/null | sed -r 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
> >  # shellcheck disable=2016
> >  [[ $host_mirror == *file://* ]] && host_mirror_path=$(echo
> "$host_mirror" | sed -r 's#file://(/.*)/\$repo/os/\$arch#\1#g')
>
> While we're at it: what is the point of setting host_mirror anyway?
> I've had users complain about it causing problems like this and
> others.
>

Our build server also hosts a compete rsync'ed mirror, so the first server
in the mirrorlist has a file:// URL, while additional cache dirs point into
the mirror package pool.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20170715/015611e9/attachment.html>


More information about the arch-projects mailing list