From 6d87fb2eab98ba470fcd8ab43353c0b4a0965e36 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 9 Sep 2011 15:16:26 +0000 Subject: Accept '~' in patch names. Some programs actually have files with it in their names. --- pkgtools/pkglint/files/pkglint.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index ddf59d6c753..5b94834dbff 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.829 2011/08/16 23:13:34 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.830 2011/09/09 15:16:26 wiz Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -7997,7 +7997,7 @@ sub checkfile($) { } elsif ($basename =~ m"^MESSAGE") { $opt_check_MESSAGE and checkfile_MESSAGE($fname); - } elsif ($basename =~ m"^patch-[-A-Za-z0-9_\.]*$") { + } elsif ($basename =~ m"^patch-[-A-Za-z0-9_\.~]*$") { $opt_check_patches and checkfile_patch($fname); } elsif ($fname =~ m"(?:^|/)patches/manual-[^/]*$") { -- cgit v1.2.3