makepkg is always invoked in the image itself to build a package,
so there's no point in mounting over the makepkg.conf from the tools
tree into the sandbox.
# bind mount the local directory from the image to make sure that happens.
mounts += [Mount(context.root / "var/lib/pacman/local", "/var/lib/pacman/local")]
- if (
- (context.config.tools() / "etc/makepkg.conf").exists() and
- not (context.pkgmngr / "etc/makepkg.conf").exists()
- ):
- mounts += [Mount(context.config.tools() / "etc/makepkg.conf", "/etc/makepkg.conf", ro=True)]
-
return mounts
@classmethod