Subject: pkglint change
To: None <tech-pkg@netbsd.org>
From: James Chacon <jchacon@genuity.net>
List: tech-pkg
Date: 10/30/2001 02:00:27
Can anyone see a reason not to change lintpkgsrc.pl as follows:

Index: lintpkgsrc.pl
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkglint/files/lintpkgsrc.pl,v
retrieving revision 1.55
diff -u -r1.55 lintpkgsrc.pl
--- lintpkgsrc.pl       2001/07/07 18:21:29     1.55
+++ lintpkgsrc.pl       2001/10/30 06:46:28
@@ -1033,7 +1033,7 @@
                    {
                    if (m/^(\w+) ?\(([^\)]+)\) = (\S+)/)
                        {
-                       if (substr($2, 0, 6) eq 'patch-')
+                       if ($2 =~ /^patch-..$/)
                            { next; }
                        if (!defined $distfiles{$2})
                            {


Basically this only excludes patch-?? instead of any file starting with
patch- (ok only 1 exists today in security/smtpd but lintpkgsrc shouldn't
be complaining in any case..)

I've run this with both -o and -m against my fully downloaded distfiles
area and it's happy.

James