[scripts] metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAGE_kmod-ipv6"

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29695 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2012-01-08 15:49:20 +00:00
parent d4a872bb03
commit c4e84eb3f8
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ sub mconf_depends {
$flags =~ /@/ or $depend = "PACKAGE_$depend";
if ($condition) {
if ($m =~ /select/) {
next if $depend eq $condition;
$depend = "$depend if $condition";
} else {
$depend = "!($condition) || $depend";