www/89523: [PATCH] Two fixes for www/en/ports/portindex
Rudolf Cejka
cejkar at fit.vutbr.cz
Fri Nov 25 11:50:04 GMT 2005
>Number: 89523
>Category: www
>Synopsis: [PATCH] Two fixes for www/en/ports/portindex
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-www
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Nov 25 11:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Rudolf Cejka
>Release: FreeBSD 5.3-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:
>Description:
Here are two fixes for www/en/ports/portindex (revision 1.54):
1) Allow white space after the second comma in categories (white space
is already allowed after the first comma and in categories.descriptions
too).
2) Remove useless condition - it is already tested one line above.
--- www/en/ports/portindex.orig Thu Nov 24 22:31:56 2005
+++ www/en/ports/portindex Fri Nov 25 11:56:27 2005
@@ -128,7 +128,7 @@
while(<P>) {
# ignore comments
next if /^\s*#/;
- if (/^\s*([^,]+),\s*"([^"]+)",([A-Z]+)/) {
+ if (/^\s*([^,]+),\s*"([^"]+)",\s*([A-Z]+)/) {
$category_description{$1}{desc}=$2;
$category_description{$1}{group}=$3;
}
@@ -149,7 +149,7 @@
# ignore comments
next if /^\s*#/;
if (/^\s*([^,]+),\s*(.+)/) {
- $category_groups{$1}=$2 if (/^\s*([^,]+),\s*(.+)/);
+ $category_groups{$1}=$2;
push(@category_groups,$1);
}
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-www
mailing list