[scripts] metadata.pl: filter direct recursive depends like "select PACKAGE_kmod...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jan 2012 15:49:20 +0000 (15:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Jan 2012 15:49:20 +0000 (15:49 +0000)
SVN-Revision: 29695

scripts/metadata.pl

index 0f4ae9f..41e6e9c 100755 (executable)
@@ -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";