pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Don't report *_MK variables as ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6fc91887d10
branches:  trunk
changeset: 503415:a6fc91887d10
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 20 10:07:45 2005 +0000

description:
Don't report *_MK variables as unchecked.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r e090d1397ea8 -r a6fc91887d10 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Nov 20 10:02:31 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Nov 20 10:07:45 2005 +0000
@@ -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 @@
                }
 
                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);



Home | Main Index | Thread Index | Old Index