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:
parent
7df70e7fff
commit
c58bf862b4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user