summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>2001-11-11 05:04:28 +0000
committerhubertf <hubertf>2001-11-11 05:04:28 +0000
commitc74eb6b9da11d73b19b941a774f099405ed17591 (patch)
tree9af21f9eff63561c6ce9f33fd08d0b8a3873fd44
parentb09e959f0d7b22668a561beec2dab50a03e84a41 (diff)
downloadpkgsrc-c74eb6b9da11d73b19b941a774f099405ed17591.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.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
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.