- Allow whitespace after second comma in categories (it was already allowed

after first comma, and in categories.descriptions)
- Don't test same pattern twice

PR:		www/89523
Submitted by:	Rudolf Cejka <cejkar@fit.vutbr.cz>
This commit is contained in:
Pav Lucistnik 2005-11-29 18:11:47 +00:00
parent 149ab8a40d
commit dd4973fe0c
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=26458

View file

@ -4,7 +4,7 @@
#
# by John Fieber <jfieber@FreeBSD.org>
# Mon May 13 10:31:58 EST 1996
# $FreeBSD: www/en/ports/portindex,v 1.53 2005/10/18 03:45:12 linimon Exp $
# $FreeBSD: www/en/ports/portindex,v 1.54 2005/11/15 10:09:26 osa Exp $
############################################################
@ -128,7 +128,7 @@ sub category_description {
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 @@ sub category_groups {
# ignore comments
next if /^\s*#/;
if (/^\s*([^,]+),\s*(.+)/) {
$category_groups{$1}=$2 if (/^\s*([^,]+),\s*(.+)/);
$category_groups{$1}=$2;
push(@category_groups,$1);
}
}