summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-05-01 18:08:00 +0000
committerrillig <rillig@pkgsrc.org>2006-05-01 18:08:00 +0000
commit0d6b6cd6d968b8a0b6eaae7c2f68e67f3a795052 (patch)
treedd4d10bbcb85f1ea9dad186a15de41be5a6d03f3 /pkgtools
parentaefc3fa0eca171bec6797fbc6a49355008860d14 (diff)
downloadpkgsrc-0d6b6cd6d968b8a0b6eaae7c2f68e67f3a795052.tar.gz
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 (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index c73c485c2b9..ba65e142a4b 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -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 @@ sub checkfile_buildlink3_mk($) {
# 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);