scripts/metadata.pl: avoid adding depends and select for the same symbol

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41160 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2014-06-12 14:35:09 +00:00
parent 1cecce54f5
commit a01a1f06b2

View file

@ -504,7 +504,7 @@ sub mconf_depends {
next if $depend eq $condition; next if $depend eq $condition;
$depend = "$depend if $condition"; $depend = "$depend if $condition";
} else { } else {
$depend = "!($condition) || $depend"; $depend = "!($condition) || $depend" unless $dep->{$condition} eq 'select';
} }
} }
} }