[buildarmpkg] update chroot db and packages before building package

parent 5060eb8e
......@@ -542,6 +542,7 @@ build_pkg() {
mount -o bind "$PACKAGE" $BUILDDIR/$ARCH/build
msg "Building {$PACKAGE}..."
mount -o bind /var/cache/manjaro-arm-tools/pkg/pkg-cache $BUILDDIR/$ARCH/var/cache/pacman/pkg
$NSPAWN $BUILDDIR/$ARCH/ pacman -Syu 1> /dev/null 2>&1
$NSPAWN $BUILDDIR/$ARCH/ --chdir=/build/ makepkg -Asc --noconfirm
prune_cache
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment