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 warn about unknown lines ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5428fbbaba7
branches:  trunk
changeset: 512120:b5428fbbaba7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon May 01 18:08:00 2006 +0000

description:
Don't warn about unknown lines in paragrpah five of buildlink3.mk files
by default. Just skip them and only issue diagnostics when in --debug
mode.

diffstat:

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

diffs (21 lines):

diff -r e8620eab1a28 -r b5428fbbaba7 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Mon May 01 18:02:11 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Mon May 01 18:08:00 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.568 2006/05/01 13:47:54 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.569 2006/05/01 18:08:00 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -4150,8 +4150,8 @@
                        # Comments and empty lines are fine here.
 
                } else {
-                       $lines->[$lineno]->log_warning("Unexpected line.");
-                       return;
+                       $opt_debug and $lines->[$lineno]->log_warning("Unexpected line.");
+                       $lineno++;
                }
        }
        expect_empty_line($lines, \$lineno);



Home | Main Index | Thread Index | Old Index