pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - When guessing the type of var...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1205977c984
branches:  trunk
changeset: 506237:f1205977c984
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jan 13 00:42:08 2006 +0000

description:
- When guessing the type of variables, *_DIRS and *_FILES are both of the
  type List of Pathmask.

diffstat:

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

diffs (22 lines):

diff -r 14b4bb2e4678 -r f1205977c984 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Fri Jan 13 00:37:15 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Fri Jan 13 00:42:08 2006 +0000
@@ -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 @@
                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"



Home | Main Index | Thread Index | Old Index