aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2003-02-25 00:07:07 +0800
committersteve <steve@FreeBSD.org>2003-02-25 00:07:07 +0800
commit4e25e12d82cff92266052a27dacc6b14d76ee5d1 (patch)
tree3b686d940e51c41e8ee6c948bc658cf9901f5cdd
parent4795a2e889cde8d1998fb7e0c106cf8dbfaa59c5 (diff)
downloadfreebsd-ports-gnome-4e25e12d82cff92266052a27dacc6b14d76ee5d1.tar.gz
freebsd-ports-gnome-4e25e12d82cff92266052a27dacc6b14d76ee5d1.tar.zst
freebsd-ports-gnome-4e25e12d82cff92266052a27dacc6b14d76ee5d1.zip
Do a better job of stating which port we had problems with while
mapping directories to package names.
-rw-r--r--Tools/make_index8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/make_index b/Tools/make_index
index 3708e94928db..034f574b3897 100644
--- a/Tools/make_index
+++ b/Tools/make_index
@@ -13,7 +13,7 @@ require 5.002;
# Helper function to map a directory to a pkgname.
sub by_path {
- my $name = shift;
+ my ($name, $port) = @_;
# If a direct mapping exists, then use it.
return $by_path{$name} if (defined $by_path{$name});
@@ -28,7 +28,7 @@ sub by_path {
$name = join('/', @p);
return $by_path{$name} if (defined $by_path{$name});
- print STDERR "make_index: no entry for: $name\n";
+ print STDERR "make_index: $port: no entry for $name\n";
return undef;
}
@@ -101,12 +101,12 @@ foreach $name (keys %index) {
my $pkg = $index{$name};
# first the build dependencies
if (@{$pkg->{bdep}}) {
- my @bdep = map { by_path($_) } @{$pkg->{bdep}};
+ my @bdep = map { by_path($_, $name) } @{$pkg->{bdep}};
$pkg->{bdep} = \@bdep;
}
# and now the run dependencies
if (@{$pkg->{rdep}}) {
- my @rdep = map { by_path($_) } @{$pkg->{rdep}};
+ my @rdep = map { by_path($_, $name) } @{$pkg->{rdep}};
$pkg->{rdep} = \@rdep;
}
}