coreutils: add generic version check override

Override generic version checks to skip them for some of the tools that
don't report their versions.

Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin
2026-05-08 16:52:59 +03:00
committed by Alexandru Ardelean
parent 3a41106cdc
commit ce418228c3
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
if [ "$PKG_NAME" = 'coreutils' ]; then
exit 0
fi
EXEC=${PKG_NAME#coreutils-}
case "$EXEC" in
echo|false|kill|printf|pwd|test|true)
exit 0
;;
*)
"$EXEC" --version 2>&1 | grep -qF "$PKG_VERSION"
;;
esac