* Fix 'make search' with non-default ${PORTSDIR}

PR:		ports/105917
Submitted by:	shaun
This commit is contained in:
Mark Linimon 2007-03-06 06:58:35 +00:00
parent be4c6448a8
commit e3907bef8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186642

View file

@ -416,6 +416,8 @@ _PORTSEARCH= \
} \
} \
{ \
if (match($$2, "^/usr/ports/[^/]*/[^/]*$$") > 0) \
sub("^/usr/ports", "${PORTSDIR}", $$2); \
if (substr($$2, 1, therelen) != there) \
next; \
for (i in parms) \