diff options
author | tnn <tnn@pkgsrc.org> | 2015-10-05 13:16:44 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-10-05 13:16:44 +0000 |
commit | bb4078d022cffb6630fb4cdc476d4e68bd8c494d (patch) | |
tree | c8ffeafe7f6f2200f8a2dfe7d24098bef385a984 /pkgtools/lintpkgsrc | |
parent | 284cc54afc0c6117d550f0c22342f06bdd223955 (diff) | |
download | pkgsrc-bb4078d022cffb6630fb4cdc476d4e68bd8c494d.tar.gz |
simplify previous; _ is included in \w
Diffstat (limited to 'pkgtools/lintpkgsrc')
-rwxr-xr-x | pkgtools/lintpkgsrc/files/lintpkgsrc.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl index 54013a7d751..69b600f8c08 100755 --- a/pkgtools/lintpkgsrc/files/lintpkgsrc.pl +++ b/pkgtools/lintpkgsrc/files/lintpkgsrc.pl @@ -1,6 +1,6 @@ #! @PERL@ -# $NetBSD: lintpkgsrc.pl,v 1.7 2015/10/05 13:12:12 tnn Exp $ +# $NetBSD: lintpkgsrc.pl,v 1.8 2015/10/05 13:16:44 tnn Exp $ # Written by David Brownlee <abs@netbsd.org>. # @@ -154,7 +154,7 @@ sub main() { if (m/^(\w+) ?\(([^\)]+)\) = (\S+)/) { my($dn); - if ($2 =~ /^patch-[\w._+\-]+$/) + if ($2 =~ /^patch-[\w.+\-]+$/) { next; } $dn = $2; # Strip leading ./ which sometimes gets added @@ -1596,7 +1596,7 @@ sub scan_pkgsrc_distfiles_vs_distinfo($$$$) { $dt = $1; $dn = $2; $ds = $3; - if ( $dn =~ /^patch-[\w._+\-]+$/ ) { + if ( $dn =~ /^patch-[\w.+\-]+$/ ) { next; } |