From 3cdd73e630392437ab7dcc4920bb12f8f00b7e3b Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 21 Apr 2001 12:54:17 +0000 Subject: Use the same pattern for matching patch files as in bsd.pkg.mk. Fixes a bogus warning for at least devel/patch. --- pkgtools/pkglint/Makefile | 4 ++-- pkgtools/pkglint/files/pkglint.pl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 00c74f5564f..5579cda6fcb 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.87 2001/04/19 13:25:41 wiz Exp $ +# $NetBSD: Makefile,v 1.88 2001/04/21 12:54:17 wiz Exp $ # -DISTNAME= pkglint-2.45 +DISTNAME= pkglint-2.46 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 75ada265a1f..51c204f1d9e 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.45 2001/04/19 13:25:42 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.46 2001/04/21 12:54:17 wiz Exp $ # # This version contains some changes necessary for NetBSD packages # done by Hubert Feyrer , @@ -326,7 +326,7 @@ sub checkdistinfo { &perror("FATAL: checksum of $patch differs between $portdir/$file and\n" ." $portdir/$patchdir/$patch. Rerun 'make makepatchsum'."); } - } elsif ($patch =~ /^patch-/) { + } elsif ($patch =~ /^patch-[a-z0-9]+$/) { &perror("FATAL: patchfile '$patch' is in $file\n" ." but not in $portdir/$patchdir/$patch. Rerun 'make makepatchsum'."); } @@ -335,7 +335,7 @@ sub checkdistinfo { } close(SUM); - foreach $patch ( <$portdir/$patchdir/patch-*> ) { + foreach $patch ( <$portdir/$patchdir/patch-[a-z0-9]+> ) { $patch =~ /\/([^\/]+)$/; if (! $indistinfofile{$1}) { &perror("FATAL: patchsum of '$1' is in $portdir/$patchdir/$1 but not in\n" -- cgit v1.2.3