From 60de2a776a298ed92b8dd405bbe553ec33517df6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 22 Jul 2013 14:29:56 +0000 Subject: [PATCH] abuild: add support to mask out given CLIBC in options For example, to mask out musl, add: options="!libc_musl" --- abuild.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abuild.in b/abuild.in index 17ff611..ea0ad02 100755 --- a/abuild.in +++ b/abuild.in @@ -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"