pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Fixed the .if/.endif handling i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f485ac4b268
branches:  trunk
changeset: 556459:2f485ac4b268
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Mar 22 05:57:40 2009 +0000

description:
Fixed the .if/.endif handling in the new buildlink3.mk format.

diffstat:

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

diffs (19 lines):

diff -r c54411767c4a -r 2f485ac4b268 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Mar 22 05:50:12 2009 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Mar 22 05:57:40 2009 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.803 2009/03/22 05:50:12 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.804 2009/03/22 05:57:40 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -6652,7 +6652,7 @@
                        || expect($lines, \$lineno, qr"^\.\s*include \"\.\./\.\./mk/(\S+)\.buildlink3\.mk\"$")) {
                        # TODO: Maybe check dependency lines.
 
-               } elsif (expect($lines, \$lineno, qr"^\.if !empty\(PKG_BUILD_OPTIONS\.\Q${bl_pkgbase}\E:M\S+\)$")) {
+               } elsif (expect($lines, \$lineno, qr"^\.if\s")) {
                        $if_level++;
 
                } elsif (expect($lines, \$lineno, qr"^\.endif.*$")) {



Home | Main Index | Thread Index | Old Index