ports/96089: update: devel/portlint -> 2.8.8
Emanuel Haupt
ehaupt at FreeBSD.org
Thu Apr 20 09:10:16 UTC 2006
>Number: 96089
>Category: ports
>Synopsis: update: devel/portlint -> 2.8.8
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 20 09:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Emanuel Haupt
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 03:18:20 UTC 2005 kensmith at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL i386
>Description:
If the number of errors/warnings == 1 warning/error (singular) should be
displayed insted of warnings/errors (plural).
>How-To-Repeat:
>Fix:
--- portlint.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/portlint/Makefile,v
retrieving revision 1.108
diff -u -r1.108 Makefile
--- Makefile 7 Apr 2006 00:08:00 -0000 1.108
+++ Makefile 20 Apr 2006 08:59:15 -0000
@@ -8,7 +8,7 @@
#
PORTNAME= portlint
-PORTVERSION= 2.8.7
+PORTVERSION= 2.8.8
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
Index: src/portlint.pl
===================================================================
RCS file: /home/pcvs/ports/devel/portlint/src/portlint.pl,v
retrieving revision 1.88
diff -u -r1.88 portlint.pl
--- src/portlint.pl 12 Mar 2006 19:19:43 -0000 1.88
+++ src/portlint.pl 20 Apr 2006 08:59:16 -0000
@@ -495,7 +495,10 @@
if ($indexerr);
}
if ($err || $warn) {
- print "$err fatal errors and $warn warnings found.\n"
+ my($errtext,$warntext)=("error","warning");
+ $errtext.="s" unless ($err == 1);
+ $warntext.="s" unless ($warn == 1);
+ printf("%d fatal %s and %d %s found.\n", $err, $errtext, $warn, $warntext);
} else {
print "looks fine.\n";
}
--- portlint.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list