diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-10-14 05:25:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-10-14 05:25:50 +0000 |
commit | 80b7ff39f9d2dca5a411610f78d7f093368a484f (patch) | |
tree | e89806f22dd815493e481f683a5af2dd7836a10d /scripts | |
parent | a3c1000f0fb7689f0a3b98a66ab751e99fa0c9fb (diff) | |
download | mtk-20170518-80b7ff39f9d2dca5a411610f78d7f093368a484f.zip mtk-20170518-80b7ff39f9d2dca5a411610f78d7f093368a484f.tar.gz mtk-20170518-80b7ff39f9d2dca5a411610f78d7f093368a484f.tar.bz2 |
fix duplicate dependencies
SVN-Revision: 9311
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 580e29e..4fa7be0 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -301,6 +301,8 @@ sub mconf_depends($$) { my $depends = shift; my $only_dep = shift; my $res; + my $dep = shift; + $dep or $dep = {}; $depends or return; my @depends = @$depends; @@ -321,10 +323,14 @@ sub mconf_depends($$) { # thus if FOO depends on other config options, these dependencies # will not be checked. To fix this, we simply emit all of FOO's # depends here as well. - $package{$depend} and $res .= mconf_depends($package{$depend}->{depends}, 1); + $package{$depend} and mconf_depends($package{$depend}->{depends}, 1, $dep); }; $flags =~ /@/ or $depend = "PACKAGE_$depend"; } + $dep->{$depend} =~ /select/ or $dep->{$depend} = $m; + } + foreach my $depend (keys %$dep) { + my $m = $dep->{$depend}; $res .= "\t\t$m $depend\n"; } return $res; |