From: Jo-Philipp Wich Date: Sun, 8 Jan 2012 15:49:20 +0000 (+0000) Subject: metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAG... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=73b49743973a6c61448d6917c28389f2895795af;p=openwrt%2Fstaging%2Fthess.git metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAGE_kmod-ipv6" SVN-Revision: 29695 --- 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";