summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-10-22 12:39:50 +0200
committerAllan McRae <allan@archlinux.org>2019-10-22 15:18:48 +0200
commitc58bf862b456a5c755c6a2a6c2b51e17c542da28 (patch)
tree8ec248fd53acb2661378a6914c252a63973881f8 /scripts
parent7df70e7fff7ded37b0d1fe1be814f4b70aa754ad (diff)
downloadpacman-c58bf862b456a5c755c6a2a6c2b51e17c542da28.tar.gz
pacman-c58bf862b456a5c755c6a2a6c2b51e17c542da28.tar.xz
makepkg: don't warn when PACKAGER is unset
makepkg now complains when PACKAGER is not in the format "name <email>". Hide this warning when PACKAGER is unset but still warn if it is set to something out of format. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmakepkg/lint_config/variable.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/lint_config/variable.sh.in b/scripts/libmakepkg/lint_config/variable.sh.in
index aa9f6c07..a4c17fe4 100644
--- a/scripts/libmakepkg/lint_config/variable.sh.in
+++ b/scripts/libmakepkg/lint_config/variable.sh.in
@@ -62,7 +62,7 @@ lint_config_variables() {
# pacman should be able to extract an email address from PACKAGER for WKD key lookup
local match='^([^<>]+ )?<[^<>]*>$'
- if ! [[ $PACKAGER =~ $match ]]; then
+ if ! [[ $PACKAGER == "Unknown Packager" || $PACKAGER =~ $match ]]; then
warning "$(gettext "PACKAGER should have the format 'Example Name <email@address.invalid>'")"
fi