pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Buildlink files may use the := ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0bd9f0a3a7e2
branches:  trunk
changeset: 498407:0bd9f0a3a7e2
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Aug 21 18:25:27 2005 +0000

description:
Buildlink files may use the := assignment operator for variable names that
contain "BUILDLINK". All other uses are still flagged.

diffstat:

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

diffs (21 lines):

diff -r a11df450ef4a -r 0bd9f0a3a7e2 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Aug 21 15:33:45 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Aug 21 18:25:27 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.251 2005/08/21 15:33:45 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.252 2005/08/21 18:25:27 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1323,7 +1323,7 @@
                if ($text =~ $regex_varassign) {
                        my ($varname, $op, $value) = ($1, $2, $3);
 
-                       if ($op eq ":=") {
+                       if ($op eq ":=" && !($line->file =~ qr"buildlink3.mk$" && $varname =~ "BUILDLINK")) {
                                $line->log_warning("Please use \"=\" instead of \":=\" if possible.");
                        }
                }



Home | Main Index | Thread Index | Old Index