xbps-src: overwrite packages in local repo
This commit is contained in:
parent
7b7d385f8b
commit
4f03807529
6 changed files with 36 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue