diff options
author | Steve Price <steve@FreeBSD.org> | 1999-02-22 03:01:21 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-02-22 03:01:21 +0000 |
commit | 94723819db6285561e54319354f0c829a23949cc (patch) | |
tree | 67f803d9357c20360ab0082d18455f5f09169289 /ports-mgmt/portlint | |
parent | Swap order of MASTERSITES so the faster gets used first. (diff) |
Handle x11-* categories correctly.
Reviewed by: maintainer
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 8989f4cdc55a..1c3876678ea2 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -13,7 +13,7 @@ # bsd.port.mk. There are significant differences in those so you'll have # hard time upgrading this... # -# $Id: portlint.pl,v 1.1 1999/01/05 12:23:28 itojun Exp $ +# $Id: portlint.pl,v 1.2 1999/01/05 12:26:08 itojun Exp $ # $err = $warn = 0; @@ -688,18 +688,19 @@ EOF # check x11 in CATEGORIES if ($newxdef - && $tmp =~ /\nCATEGORIES[+?]?=[ \t]*([^\n]*)\n/ && $1 =~ /x11/) { + && $tmp =~ /\nCATEGORIES[+?]?=[ \t]*([^\n]*)\n/ + && ($foo = $1) =~ /x11/) { print "OK: checking x11 in CATEGORIES.\n" if ($verbose); - @i = split(/\s+/, $1); - if ($i[0] eq 'x11') { + @i = split(/\s+/, $foo); + if ($i[0] =~ /^x11\-?/) { ; # okay } elsif ($i[0] =~ /(chinese|japanese|korean|german|russian)/) { ; # okay } else { &perror("WARN: only specific kind of apps should ". "specify \"x11\" in CATEGORIES. ". - "do you mean just USE_XLIB? ". - "then remove \"x11\" from CATEGORIES."); + "Do you mean just USE_XLIB? ". + "Then remove \"x11\" from CATEGORIES."); } } |