diff options
author | rillig <rillig> | 2005-12-02 09:01:32 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-12-02 09:01:32 +0000 |
commit | 15f8f353cc75432d9a7c0c3be98dd8aba4b5dd25 (patch) | |
tree | a140088dedb09ead67f94cc0e93a4d420bd428b4 /pkgtools/pkglint | |
parent | ca354358535ea7f53a49f009ca93797b302dd3dd (diff) | |
download | pkgsrc-15f8f353cc75432d9a7c0c3be98dd8aba4b5dd25.tar.gz |
Allow append-only lists to be initialized using the "?=" operator, in
addition to initializing them to a commented empty value and using the
"+=" operator. Reenabled the check for BUILDLINK_RECOMMENDED.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/makevars.map | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/makevars.map b/pkgtools/pkglint/files/makevars.map index b939da14a37..7f201719526 100644 --- a/pkgtools/pkglint/files/makevars.map +++ b/pkgtools/pkglint/files/makevars.map @@ -1,4 +1,4 @@ -# $NetBSD: makevars.map,v 1.46 2005/12/02 08:56:09 rillig Exp $ +# $NetBSD: makevars.map,v 1.47 2005/12/02 09:01:32 rillig Exp $ # # This file contains the guessed type of some variables, according to @@ -44,7 +44,7 @@ BDB_LIBS Readonly BDB_TYPE Readonly BUILDLINK_DEPENDS List!+ of Dependency BUILDLINK_PKGSRCDIR RelativePkgDir -#BUILDLINK_RECOMMENDED List!+ of Dependency +BUILDLINK_RECOMMENDED List!+ of Dependency BUILDLINK_TRANSFORM List+ BUILD_DEFS List+ of Varname BUILD_DEPENDS List!+ of DependencyWithPath diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index ff8ce538c81..5b75b3ed86e 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.410 2005/12/02 08:44:23 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.411 2005/12/02 09:01:32 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -2166,7 +2166,7 @@ sub checkline_Makefile_vartype($$) { my ($internal_list, $append_only, $element_type) = ($1 eq "!", $2 eq "+", $3); my (@words, $rest); - if ($append_only && $op ne "+=" && !($value eq "" && defined($comment) && $comment =~ qr"^#")) { + if ($append_only && $op ne "+=" && $op ne "?=" && !($value eq "" && defined($comment) && $comment =~ qr"^#")) { $line->log_warning("${varname} should be modified using \"+=\"."); } |