Don't report *_MK variables as unchecked.

This commit is contained in:
rillig 2005-11-20 10:07:45 +00:00
parent fa35d64150
commit 5cf5e4b62f

View file

@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
# $NetBSD: pkglint.pl,v 1.368 2005/11/19 19:28:06 rillig Exp $
# $NetBSD: pkglint.pl,v 1.369 2005/11/20 10:07:45 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@ -1810,7 +1810,9 @@ sub checkline_Makefile_vartype($$) {
}
if (!defined($type)) {
$line->log_info("[checkline_Makefile_vartype] Unchecked variable ${varname}.");
if ($varname !~ qr"_MK$") {
$line->log_info("[checkline_Makefile_vartype] Unchecked variable ${varname}.");
}
} elsif ($type =~ qr"^List(\*?)(?: of (.*))?$") {
my ($append_only, $element_type) = ($1 eq "", $2);