metadata.pl: filter direct recursive depends like "select PACKAGE_kmod-ipv6 if PACKAGE_kmod-ipv6"

SVN-Revision: 29695
This commit is contained in:
Jo-Philipp Wich 2012-01-08 15:49:20 +00:00
parent 7251541786
commit 73b4974397

View file

@ -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";