Details

Description:
When initially making a chroot, mkarchroot allows you to specify a makepkg.conf and pacman.conf, as well as a package cache. Subsequent invocations of makechrootpkg should respect the choice of mirror articulated in the custom pacman.conf. Instead, subsequent makechrootpkg invocations always examines the mirror used by the host.

In my situation, the "host" has been held back at a repository snapshot, and I'm trying to recompile the packages I need from the AUR against a more recent snapshot before upgrading.

It's an ez fix: on the first line which attempts to guess at a mirror to use, run pacman inside the chroot instead of on the host system.

Additional info:
* package version(s) = git repo trunk

Steps to reproduce:
* make a pacman.conf which specifies the use of different repositories than what the host uses
* use this custom pacman.conf to create a chroot
* build a package using makechrootpkg.

Note that packages from step 2 come from the repositories you specified in the pacman.conf, and packages installed in step 3 come from the repositories specified by the host.