X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/dde8e9a63e4e787e64314603657aa6bd4e380128..5d8f115d9b0b6f6e886582229491a24fa7e62c65:/scripts/metadata.pl diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 007b63ed9..d920f59fc 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -380,14 +380,14 @@ sub mconf_depends($$) { $depend = join("||", map { "PACKAGE_".$_ } @$vdep); } else { $flags =~ /\+/ and do { - next if $only_dep; - $m = "select"; - # Menuconfig will not treat 'select FOO' as a real dependency # 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 mconf_depends($package{$depend}->{depends}, 1, $dep); + + $m = "select"; + next if $only_dep; }; $flags =~ /@/ or $depend = "PACKAGE_$depend"; }