From 6d23021cec25114d51b09cfc36a48e9b52651080 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sun, 11 Nov 2001 05:04:28 +0000 Subject: Recognize "nb1" (etc.) on DISTNAMEs that should really be on PKGNAMEs: miyu% grep nb Makefile DISTNAME= xfsprogs-1.2.8.srcnb1 miyu% /tmp/pkglint OK: checking Makefile. ====> WARN: is 'nb1' really ok on DISTNAME, or is it intended for PKGNAME? OK: checking pkg/PLIST. OK: checking pkg/DESCR. OK: checking distinfo. 0 fatal errors and 1 warnings found. Suggested by Tomasz Luchowski. --- pkgtools/pkglint/files/pkglint.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgtools') diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index a3503044550..7a8dc505c24 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.61 2001/11/03 21:41:49 wiz Exp $ +# $NetBSD: pkglint.pl,v 1.62 2001/11/11 05:04:28 hubertf Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer , @@ -977,6 +977,10 @@ EOF "it has to be hyphen."); } } + if ($distname =~ /(nb\d*)/) { + &perror("WARN: is '$1' really ok on DISTNAME, ". + "or is it intended for PKGNAME?"); + } # if DISTFILES have only single item, it is better to avoid DISTFILES # and to use combination of DISTNAME and EXTRACT_SUFX. -- cgit v1.2.3