Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 12:39:56 +0100 (CET)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   www/89523: [PATCH] Two fixes for www/en/ports/portindex
Message-ID:  <200511251139.jAPBdufT055145@kazi.fit.vutbr.cz>
Resent-Message-ID: <200511251150.jAPBo3DI056070@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511251139.jAPBdufT055145>