diff options
author | rillig <rillig> | 2005-08-21 18:25:27 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-08-21 18:25:27 +0000 |
commit | f9d4fa2b44a31c0cc4dd8bb65c582f5fc8eb2bd5 (patch) | |
tree | 89f9446a50acf21c15b2af32d30717707e5161b0 /pkgtools | |
parent | fdc921efb9171468c1d694d1bd6e05504b8294a6 (diff) | |
download | pkgsrc-f9d4fa2b44a31c0cc4dd8bb65c582f5fc8eb2bd5.tar.gz |
Buildlink files may use the := assignment operator for variable names that
contain "BUILDLINK". All other uses are still flagged.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 2df880a3a9b..84c7e7d90da 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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 @@ sub checklines_Makefile($) { 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."); } } |