From f880fbfd6d9332d0c7dfb4c972a0da9f12ff0de0 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 3 Nov 2001 21:14:18 +0000 Subject: Don't check Makefile and distinfo twice, and use checkplist again for PLIST. --- pkgtools/pkglint/files/pkglint.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 08739d342b8..791204aa615 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.58 2001/10/31 18:39:27 zuntum Exp $ +# $NetBSD: pkglint.pl,v 1.59 2001/11/03 21:14:18 wiz Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer , @@ -133,10 +133,11 @@ if (! -f "$portdir/Makefile") { if ($extrafile) { foreach $i ((<$portdir/$scriptdir/*>, <$portdir/$pkgdir/*>)) { next if (! -T $i); + next if ($i =~ /distinfo$/); + next if ($i =~ /Makefile$/); $i =~ s/^\Q$portdir\E\///; next if (defined $checker{$i}); - if ($i =~ /pkg\/PLIST$/ || - ($i =~ /pkg\/PLIST/)) { + if ($i =~ /PLIST/) { unshift(@checker, $i); $checker{$i} = 'checkplist'; } else { -- cgit v1.2.3