summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-02-22 14:47:32 +0000
committerwiz <wiz@pkgsrc.org>2001-02-22 14:47:32 +0000
commitc5893428ed2404fe696d04a55cf29b685d484354 (patch)
tree61722c6c16efb78a89899a37aa302d375e5fbe83 /pkgtools
parentfb014af0afdeb63c0943052896b1505bf7b795de (diff)
downloadpkgsrc-c5893428ed2404fe696d04a55cf29b685d484354.tar.gz
Add length check for COMMENT. Bump to 2.38.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index 9bf6efdd10f..2852d2ef1c0 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.79 2001/02/17 17:51:29 wiz Exp $
+# $NetBSD: Makefile,v 1.80 2001/02/22 14:47:32 wiz Exp $
#
-DISTNAME= pkglint-2.37
+DISTNAME= pkglint-2.38
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 96def7e1c0b..2cedcc82310 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.39 2001/02/16 13:06:19 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.40 2001/02/22 14:47:33 wiz Exp $
#
# This version contains some changes necessary for NetBSD packages
# done by Hubert Feyrer <hubertf@netbsd.org> and
@@ -1148,6 +1148,9 @@ EOF
if ($tmp2 =~ /^(a|an) /i) {
&perror("WARN: COMMENT should not begin with '$1 '.");
}
+ if (length($tmp2) > 70) {
+ &perror("WARN: COMMENT should not be longer than 70 characters.");
+ }
&checkearlier($tmp, @varnames);
$tmp = "\n" . $tmp;