X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/cd02ed524bc4071056dbe2e2817e7a6586bcb979..9f6f11156f923674bde2d713f92465d618af5fb9:/scripts/metadata.pl diff --git a/scripts/metadata.pl b/scripts/metadata.pl index c963964ba..e0fb32fc1 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -423,6 +423,9 @@ sub mconf_depends { my $vdep; my $condition = $parent_condition; + next if $condition eq $depend; + next if $seen->{"$parent_condition:$depend"}; + $seen->{"$parent_condition:$depend"} = 1; if ($depend =~ /^(.+):(.+)$/) { if ($1 ne "PACKAGE_$pkgname") { if ($condition) { @@ -433,9 +436,7 @@ sub mconf_depends { } $depend = $2; } - next if $seen->{$depend}; next if $package{$depend} and $package{$depend}->{buildonly}; - $seen->{$depend} = 1; if ($vdep = $package{$depend}->{vdepends}) { $depend = join("||", map { "PACKAGE_".$_ } @$vdep); } else {