summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibremakepkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/libremakepkg b/libremakepkg
index 2055002..a41326f 100755
--- a/libremakepkg
+++ b/libremakepkg
@@ -28,6 +28,8 @@ source /etc/libretools.conf
echo "Updating the main chroot"
mkarchroot -u -c ${CACHEDIR} -- ${CHROOTDIR}/${CHROOT}
+mount -o bind ${CACHEDIR} ${CHROOTDIR}/${CHCOPY}/var/cache/pacman/pkg || exit 1
+
echo "Creating the package"
makechrootpkg -c -r ${CHROOTDIR} -l ${CHCOPY} -- $@