X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3ede106244f26a82a2f3b4dfbeaf5e26a3fb2cb8..847fd175443ae15c4db01e7ba322dee51c3f4bff:/scripts/metadata.pl?ds=inline diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 1c80be4bd..1971607eb 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -415,12 +415,12 @@ sub mconf_depends { $depend =~ s/^([@\+]+)//; my $flags = $1; my $vdep; - my $condition; + my $condition = $parent_condition; if ($depend =~ /^(.+):(.+)$/) { if ($1 ne "PACKAGE_$pkgname") { - if ($parent_condition) { - $condition = "$parent_condition && $1"; + if ($condition) { + $condition = "$condition && $1"; } else { $condition = $1; }