diff options
author | rillig <rillig@pkgsrc.org> | 2006-01-13 00:42:08 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-01-13 00:42:08 +0000 |
commit | db058d93257fc98b98831b0de34fb21950e9f0be (patch) | |
tree | 71af04a5a42c95d042dc65bf82289afc7dd7604f | |
parent | 90f635820d12445e640605790a5480561737b309 (diff) | |
download | pkgsrc-db058d93257fc98b98831b0de34fb21950e9f0be.tar.gz |
- When guessing the type of variables, *_DIRS and *_FILES are both of the
type List of Pathmask.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 2134365b3ad..dcf1936d141 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.470 2006/01/12 22:28:06 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.471 2006/01/13 00:42:08 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -2722,9 +2722,9 @@ sub checkline_mk_vartype($$$$$) { if (!defined($type)) { # Guess the datatype of the variable based on # naming conventions. - $type = ($varname =~ qr"DIRS$") ? "List of Pathname" + $type = ($varname =~ qr"DIRS$") ? "List of Pathmask" : ($varname =~ qr"DIR$") ? "Pathname" - : ($varname =~ qr"FILES$") ? "List of Pathname" + : ($varname =~ qr"FILES$") ? "List of Pathmask" : ($varname =~ qr"FILE$") ? "Pathname" : ($varname =~ qr"_USER$") ? "UserGroupName" : ($varname =~ qr"_GROUP$") ? "UserGroupName" |