perl: fix version check in test-version.sh

Enable version checking for the main perl package.
Previously, the version check for perl was skipped. Add a check
that runs perl -v and verifies that the output matches PKG_VERSION.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Josef Schlehofer
2026-06-07 22:06:31 +02:00
committed by Philip Prindeville
parent 14d197418d
commit d08ac509fa
+8 -3
View File
@@ -1,5 +1,10 @@
#!/bin/sh
# Perl script wrappers do not output the OpenWrt package version string
case "$1" in
perlbase-archive|perlbase-pod|perlbase-test) exit 0 ;;
case "$PKG_NAME" in
perl)
perl -v 2>&1 | grep -q "v$PKG_VERSION"
;;
perlbase-archive|perlbase-pod|perlbase-test)
# Perl script wrappers do not output the OpenWrt package version string
exit 0
;;
esac