git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
3a41106
)
coreutils: add generic version check override
author
George Sapkin
<redacted>
Fri, 8 May 2026 13:52:59 +0000
(16:52 +0300)
committer
Alexandru Ardelean
<redacted>
Sun, 10 May 2026 08:32:19 +0000
(11:32 +0300)
Override generic version checks to skip them for some of the tools that
don't report their versions.
Signed-off-by: George Sapkin <redacted>
utils/coreutils/test-version.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/utils/coreutils/test-version.sh
b/utils/coreutils/test-version.sh
new file mode 100755
(executable)
index 0000000..
0b211d9
--- /dev/null
+++ b/
utils/coreutils/test-version.sh
@@ -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
git clone https://git.99rst.org/PROJECT