mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Tweak to catch missing directories from the Makefiles in the various
categories which were failing to be mapped from directory to port name because 'make index' can't know to run 'make describe' in directories it doesn't know exist.
This commit is contained in:
parent
f6c6f51a63
commit
f91ad808b3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39222
@ -25,7 +25,11 @@ sub by_path {
|
||||
# Collapse all the '..' sequences.
|
||||
my @f = split('/', $name), @p = ();
|
||||
foreach (@f) { (/\.\./) ? pop(@p) : push(@p, $_); }
|
||||
return $by_path{join('/', @p)};
|
||||
$name = join('/', @p);
|
||||
return $by_path{$name} if (defined $by_path{$name});
|
||||
|
||||
print STDERR "make_index: no entry for: $name\n";
|
||||
return undef;
|
||||
}
|
||||
|
||||
# This routine replaces what used to be the time-consuming
|
||||
|
Loading…
Reference in New Issue
Block a user