diff options
author | rillig <rillig> | 2005-06-14 03:52:01 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-06-14 03:52:01 +0000 |
commit | f6f7363259c2d6a35ca8735bc41c32946a361bec (patch) | |
tree | fd66cb89a5f2cfe2ad60e03893963aa3f1d29863 /pkgtools/pkglint/files | |
parent | 72bddd9af2909d58e7193d486dfe4fd23c17aa54 (diff) | |
download | pkgsrc-f6f7363259c2d6a35ca8735bc41c32946a361bec.tar.gz |
pkglint complains about empty DESCR files again. Fixes PR 30509. Updated
version number to 4.17.1.
Diffstat (limited to 'pkgtools/pkglint/files')
-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 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); |