summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-11 15:09:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-11 15:09:31 +0200
commit68242e8c299b721f6e8e25608fab1fba4d011c96 (patch)
tree2b41d430a2e3b7eaba9af7bdda5f69b492dd5605 /bin
parent07f90c89ef78484a422ca4536ba587217147e80a (diff)
Do not mishandle further libs without dependencies
...besides sal/Library_sal.mk, like i18npool/Library_collator_data.mk. Change-Id: I2d86540bd8123410972496047fdb59ebcf35968f
Diffstat (limited to 'bin')
-rwxr-xr-xbin/module-deps.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/module-deps.pl b/bin/module-deps.pl
index 0520eca82556..edf597da28c5 100755
--- a/bin/module-deps.pl
+++ b/bin/module-deps.pl
@@ -218,14 +218,18 @@ sub collapse_lib_to_module($)
my %unknown_libs;
for my $name (sort keys %{$tree}) {
my $result = $tree->{$name};
+ $unknown_libs{$name} = 1 && next if (!grep {/$name/} keys $l2m);
+ $name = $l2m->{$name};
# sal has no dependencies, take care of it
# otherwise it doesn't have target key
if (!@{$result->{deps}}) {
- $digraph{$name}{target} = $result->{target};
+ if (!exists($digraph{$name})) {
+ my @empty;
+ $digraph{$name}{deps} = \@empty;
+ $digraph{$name}{target} = $result->{target};
+ }
}
for my $dep (@{$result->{deps}}) {
- $unknown_libs{$name} = 1 && next if (!grep {/$name/} keys $l2m);
- $name = $l2m->{$name};
$dep = $l2m->{$dep};
# ignore: two libraries from the same module depend on each other
next if ($name eq $dep);