From 5cf5e4b62fc933e2eb49207bf9423eb011c5f0f1 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 20 Nov 2005 10:07:45 +0000 Subject: [PATCH] Don't report *_MK variables as unchecked. --- pkgtools/pkglint/files/pkglint.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 5860745b1049..ed7da6eb402b 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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);