summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-06-14 03:52:01 +0000
committerrillig <rillig@pkgsrc.org>2005-06-14 03:52:01 +0000
commit16d5984a598e6e9690f29abe4711ecaf7ae56e0a (patch)
treefd66cb89a5f2cfe2ad60e03893963aa3f1d29863
parent465ef78b4a724023a1a7fe7401d7dd1f36d83f23 (diff)
downloadpkgsrc-16d5984a598e6e9690f29abe4711ecaf7ae56e0a.tar.gz
pkglint complains about empty DESCR files again. Fixes PR 30509. Updated
version number to 4.17.1.
-rw-r--r--pkgtools/pkglint/Makefile4
-rw-r--r--pkgtools/pkglint/files/pkglint.pl6
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile
index a9cb58317bd..0760674aa92 100644
--- a/pkgtools/pkglint/Makefile
+++ b/pkgtools/pkglint/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.241 2005/05/24 21:28:21 rillig Exp $
+# $NetBSD: Makefile,v 1.242 2005/06/14 03:52:01 rillig Exp $
#
-DISTNAME= pkglint-4.17
+DISTNAME= pkglint-4.17.1
CATEGORIES= pkgtools devel
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 70746074bf2..759c49a6c9d 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,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.192 2005/06/01 14:54:18 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.193 2005/06/14 03:52:01 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -782,6 +782,10 @@ sub checkfile_DESCR($) {
log_error($fname, NO_LINE_NUMBER, "Cannot be read.");
return false;
}
+ if (scalar(@{$descr}) == 0) {
+ log_error($fname, NO_LINE_NUMBER, "Must not be empty.");
+ return true;
+ }
foreach my $line (@$descr) {
checkline_length($line, $maxchars);