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>
This commit is contained in:
morganamilo 2019-10-22 11:39:50 +01:00 committed by Allan McRae
parent 7df70e7fff
commit c58bf862b4

View File

@ -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