From 6080beadafbc2697085598335711528476b80aea Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 8 Jan 2012 15:49:20 +0000 Subject: [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 --- scripts/metadata.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 0f4ae9fe0a..41e6e9cd58 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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"; -- cgit v1.2.3