Commit 60de2a77 authored by Natanael Copa's avatar Natanael Copa

abuild: add support to mask out given CLIBC in options

For example, to mask out musl, add:
options="!libc_musl"
parent c20c6132
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment