abuild: add support to mask out given CLIBC in options
For example, to mask out musl, add: options="!libc_musl"
This commit is contained in:
parent
c20c613230
commit
60de2a776a
|
@ -1350,6 +1350,11 @@ check_arch() {
|
|||
list_has $CARCH $arch || [ "$arch" = "noarch" ] || [ "$arch" = "all" ]
|
||||
}
|
||||
|
||||
# return true if libc is not masked in options
|
||||
check_libc() {
|
||||
! list_has "!libc_$CLIBC" $options
|
||||
}
|
||||
|
||||
# check if package is up to date
|
||||
apk_up2date() {
|
||||
getpkgver || return 1
|
||||
|
@ -1397,6 +1402,7 @@ abuildindex_up2date() {
|
|||
|
||||
up2date() {
|
||||
check_arch || return 0
|
||||
check_libc || return 0
|
||||
apk_up2date && abuildindex_up2date
|
||||
}
|
||||
|
||||
|
@ -1705,6 +1711,7 @@ uninstalldeps (){
|
|||
all() {
|
||||
if ! [ -n "$force" ]; then
|
||||
check_arch || return 0
|
||||
check_libc || return 0
|
||||
fi
|
||||
if up2date && [ -z "$force" ]; then
|
||||
msg "Package is up to date"
|
||||
|
|
Loading…
Reference in New Issue