xbps-src: overwrite packages in local repo
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
# vim: set ts=4 sw=4 et:
|
||||
|
||||
check_existing_pkg() {
|
||||
local arch= curpkg=
|
||||
if [ -z "$XBPS_PRESERVE_PKGS" ] || [ "$XBPS_BUILD_FORCEMODE" ]; then
|
||||
return
|
||||
fi
|
||||
arch=$XBPS_TARGET_MACHINE
|
||||
curpkg=$XBPS_REPOSITORY/$repository/$pkgver.$arch.xbps
|
||||
if [ -e $curpkg ]; then
|
||||
msg_warn "$pkgver: skipping build due to existing $curpkg\n"
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
check_pkg_arch() {
|
||||
local cross="$1" _arch f match nonegation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user