xbps-src: overwrite packages in local repo

This commit is contained in:
Piotr Wójcik 2021-08-18 01:05:00 +02:00 committed by Piotr
parent 7b7d385f8b
commit 4f03807529
6 changed files with 36 additions and 11 deletions

View file

@ -19,7 +19,7 @@ genpkg() {
done
# Don't overwrite existing binpkgs by default, skip them.
if [ -f $pkgdir/$binpkg -a -z "$XBPS_BUILD_FORCEMODE" ]; then
if [ -e $pkgdir/$binpkg ] && [ "$XBPS_PRESERVE_PKGS" ] && [ -z "$XBPS_BUILD_FORCEMODE" ]; then
msg_normal "${pkgver}: skipping existing $binpkg pkg...\n"
return 0
fi