diff options
-rwxr-xr-x | abuild.in | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" |