Handle rogue double hyphens in package names of ports with

build options, such as paper size in a2ps, that apparently
have a null default.
This commit is contained in:
John Fieber 1997-08-27 14:45:07 +00:00
parent 42635702d4
commit c7644138e4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=1892
2 changed files with 6 additions and 2 deletions

View file

@ -4,7 +4,6 @@
#
# by John Fieber <jfieber@freebsd.org>
# Mon May 13 10:31:58 EST 1996
# $Id: portindex,v 1.6 1997-08-25 13:54:07 max Exp $
############################################################
@ -58,6 +57,9 @@ sub main {
($name, $loc, $prefix, $desc, $ldesc, $owner, $cats,
$keys, $bdep, $rdep) = split('\|');
# Check for double hyphens in the name (--).
$name =~ s/--/-/g;
# Split the categories into an array
@cat = split("[ \t]+", $cats);

View file

@ -4,7 +4,6 @@
#
# by John Fieber <jfieber@freebsd.org>
# Mon May 13 10:31:58 EST 1996
# $Id: portindex,v 1.6 1997-08-25 13:54:07 max Exp $
############################################################
@ -58,6 +57,9 @@ sub main {
($name, $loc, $prefix, $desc, $ldesc, $owner, $cats,
$keys, $bdep, $rdep) = split('\|');
# Check for double hyphens in the name (--).
$name =~ s/--/-/g;
# Split the categories into an array
@cat = split("[ \t]+", $cats);