mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
d08ac509fa
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>
11 lines
215 B
Bash
Executable File
11 lines
215 B
Bash
Executable File
#!/bin/sh
|
|
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
|