diff options
author | hubertf <hubertf@pkgsrc.org> | 2001-11-11 05:04:28 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2001-11-11 05:04:28 +0000 |
commit | 6d23021cec25114d51b09cfc36a48e9b52651080 (patch) | |
tree | 9af21f9eff63561c6ce9f33fd08d0b8a3873fd44 /pkgtools/pkglint | |
parent | 191e332fdc7c8a3b71a2172924b77d66f7f17743 (diff) | |
download | pkgsrc-6d23021cec25114d51b09cfc36a48e9b52651080.tar.gz |
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.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
1 files changed, 5 insertions, 1 deletions
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 <hubertf@netbsd.org>, @@ -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. |