mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 12:40:06 +04:00
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:
committed by
Philip Prindeville
parent
14d197418d
commit
d08ac509fa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user