X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d92e2b4207e90f63307006a176c7d2756d293e04..681c0cf274cead7e9358551d249f40b4c0fa267c:/scripts/metadata.pl?ds=sidebyside diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 0f4ae9fe0..41e6e9cd5 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";