aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pl
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
commit73b49743973a6c61448d6917c28389f2895795af (patch)
treeac5b27f1a8807d81355ad36befc4f59d958b62eb /scripts/metadata.pl
parent7251541786075324a1e11f5d06cfa2ebe2d97a91 (diff)
downloadupstream-73b49743973a6c61448d6917c28389f2895795af.tar.gz
upstream-73b49743973a6c61448d6917c28389f2895795af.tar.bz2
upstream-73b49743973a6c61448d6917c28389f2895795af.zip
metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAGE_kmod-ipv6"
SVN-Revision: 29695
Diffstat (limited to 'scripts/metadata.pl')
-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";