mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 23:16:56 +04:00
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>
(cherry picked from commit ce418228c3)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
17 lines
219 B
Bash
Executable File
17 lines
219 B
Bash
Executable File
#!/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
|