xbps-src: check for existing packages before syncing chroot repodata
This significantly speeds up the package building process for build scripts etc. that run './xbps-src pkg ...' on a long list of packages that may already have up-to-date local packages built when configured with XBPS_PRESERVE_PKGS set.
This commit is contained in:
parent
39b400eccc
commit
bda1ef7b88
1
xbps-src
1
xbps-src
|
@ -806,6 +806,7 @@ case "$XBPS_TARGET" in
|
|||
if [ -n "$CHROOT_READY" -a -z "$IN_CHROOT" ]; then
|
||||
chroot_handler $XBPS_TARGET $XBPS_TARGET_PKG
|
||||
else
|
||||
check_existing_pkg
|
||||
chroot_sync_repodata
|
||||
# prevent update_base_chroot from removing the builddir/destdir
|
||||
update_base_chroot keep-all-force
|
||||
|
|
Loading…
Reference in New Issue