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