mirror of
https://github.com/openwrt/packages.git
synced 2026-05-30 03:36:24 +08: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>
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
|