pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Allow zero white-space in line ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f78883a8ebd
branches:  trunk
changeset: 539071:2f78883a8ebd
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Feb 27 00:24:19 2008 +0000

description:
Allow zero white-space in line 4 of buildlink3.mk files. This was hit by
devel/ncursesw.

diffstat:

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

diffs (19 lines):

diff -r 2843729d5465 -r 2f78883a8ebd pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Feb 26 23:30:03 2008 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Feb 27 00:24:19 2008 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.765 2008/02/21 12:16:09 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.766 2008/02/27 00:24:19 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -6566,7 +6566,7 @@
                lines_log_warning($lines, $lineno, "Expected BUILDLINK_DEPTH:= \${BUILDLINK_DEPTH}+.");
                return;
        }
-       if (($m = expect($lines, \$lineno, qr"^(.*)_BUILDLINK3_MK:=\t+\$\{\1_BUILDLINK3_MK\}\+$"))) {
+       if (($m = expect($lines, \$lineno, qr"^(.*)_BUILDLINK3_MK:=\t*\$\{\1_BUILDLINK3_MK\}\+$"))) {
                $bl_PKGBASE_line = $lines->[$lineno - 1];
                $bl_PKGBASE = $m->text(1);
                $opt_debug_misc and $bl_PKGBASE_line->log_debug("bl_PKGBASE=${bl_PKGBASE}");



Home | Main Index | Thread Index | Old Index