diff options
author | hubertf <hubertf> | 2001-11-11 05:04:28 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-11-11 05:04:28 +0000 |
commit | 55a0dd84deb3f29674e5151d65c77bb64e43cf35 (patch) | |
tree | 9af21f9eff63561c6ce9f33fd08d0b8a3873fd44 /pkgtools | |
parent | 0394c5e9376bd1c15cfdc39f078f998dff079c55 (diff) | |
download | pkgsrc-55a0dd84deb3f29674e5151d65c77bb64e43cf35.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')
-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. |