Skip to content

Commit

Permalink
Create php-wpcli Lintian override file
Browse files Browse the repository at this point in the history
  • Loading branch information
lewart3 committed Nov 7, 2023
1 parent 54056c0 commit bbc405d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion utils/wp-cli-updatedeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Only the phar file is included.
#
# VERSION :0.2.6
# DATE :2023-10-31
# DATE :2023-11-06
# AUTHOR :Viktor Sz茅pe <viktor@szepe.net>
# LICENSE :The MIT License (MIT)
# URL :https://github.com/wp-cli/wp-cli/tree/main/utils
Expand Down Expand Up @@ -89,6 +89,17 @@ echo "Current version: ${WPCLI_VER}"
# update version
sed -i -e "s/^Version: .*$/Version: ${WPCLI_VER}/" DEBIAN/control || die 6 "Version update failure"

# Lintian overrides (delete this stanza 2024-08-08)
if [[ "$(date +%F)" < 2024-08-08 ]]; then
if ! [ -r usr/share/lintian/overrides/php-wpcli ]; then
mkdir -p usr/share/lintian/overrides
cat > usr/share/lintian/overrides/php-wpcli <<EOF
# Support PHP 5.6 until 2024-08-08
php-wpcli: php-script-but-no-php-cli-dep php (does not satisfy php-cli:any) [usr/bin/wp]
EOF
fi
fi

# minimal man page
if ! [ -r usr/share/man/man1/wp.1.gz ]; then
mkdir -p usr/share/man/man1 &> /dev/null
Expand Down

0 comments on commit bbc405d

Please sign in to comment.