aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-08 15:49:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-08 15:49:20 +0000
commitc4e84eb3f831a981c04c811145e7bf764b5841d0 (patch)
treec1ca47e0efc6b46d46a3041ff9868f87d37696b7 /scripts
parentd4a872bb035aa132c7811cbccdbae8be11c58ec5 (diff)
downloadupstream-c4e84eb3f831a981c04c811145e7bf764b5841d0.tar.gz
upstream-c4e84eb3f831a981c04c811145e7bf764b5841d0.tar.bz2
upstream-c4e84eb3f831a981c04c811145e7bf764b5841d0.zip
[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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl1
1 files changed, 1 insertions, 0 deletions
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";