From c58bf862b456a5c755c6a2a6c2b51e17c542da28 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Tue, 22 Oct 2019 11:39:50 +0100 Subject: makepkg: don't warn when PACKAGER is unset makepkg now complains when PACKAGER is not in the format "name ". Hide this warning when PACKAGER is unset but still warn if it is set to something out of format. Signed-off-by: Allan McRae --- scripts/libmakepkg/lint_config/variable.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/libmakepkg') 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 '")" fi -- cgit v1.2.3-70-g09d2