pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files When checking a single *.mk fil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b1f2c0dc3283
branches:  trunk
changeset: 535089:b1f2c0dc3283
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Nov 07 16:19:01 2007 +0000

description:
When checking a single *.mk file, determine the used variables. This
avoids many false positive warnings when checking files in the mk/
directory.

diffstat:

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

diffs (19 lines):

diff -r dc6ec806cf68 -r b1f2c0dc3283 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Nov 07 15:30:26 2007 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Nov 07 16:19:01 2007 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.730 2007/11/07 12:11:18 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.731 2007/11/07 16:19:01 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -5962,6 +5962,8 @@
        $mkctx_tools = {%{get_predefined_tool_names()}};
        $mkctx_varuse = {};
 
+       determine_used_variables($lines);
+
        foreach my $prefix (qw(pre do post)) {
                foreach my $action (qw(fetch extract patch tools wrapper configure build test install package clean)) {
                        $allowed_targets->{"${prefix}-${action}"} = true;



Home | Main Index | Thread Index | Old Index