build: suppress conditional dependencies if there are unconditional dependencies...
authorFelix Fietkau <nbd@openwrt.org>
Sun, 4 Aug 2013 12:17:22 +0000 (12:17 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 4 Aug 2013 12:17:22 +0000 (12:17 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37678

scripts/metadata.pl

index 5625b8b5be0a50ad52fefdce635ae86ffbfd6ca0..28ddefcd9c92c99ea2aaf5f4ab1110c130e77e7e 100755 (executable)
@@ -454,6 +454,7 @@ sub mconf_depends {
 
                next if $condition eq $depend;
                next if $seen->{"$parent_condition:$depend"};
+               next if $seen->{":$depend"};
                $seen->{"$parent_condition:$depend"} = 1;
                if ($depend =~ /^(.+):(.+)$/) {
                        if ($1 ne "PACKAGE_$pkgname") {