pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint pkglint complains about empty DESCR f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ad834ba7c9af
branches: trunk
changeset: 495559:ad834ba7c9af
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Jun 14 03:52:01 2005 +0000
description:
pkglint complains about empty DESCR files again. Fixes PR 30509. Updated
version number to 4.17.1.
diffstat:
pkgtools/pkglint/Makefile | 4 ++--
pkgtools/pkglint/files/pkglint.pl | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 9a164f33c261 -r ad834ba7c9af pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Tue Jun 14 03:08:30 2005 +0000
+++ b/pkgtools/pkglint/Makefile Tue Jun 14 03:52:01 2005 +0000
@@ -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 -r 9a164f33c261 -r ad834ba7c9af pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Jun 14 03:08:30 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Jun 14 03:52:01 2005 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index