From: Lars-Peter Clausen Date: Sun, 1 Feb 2009 01:16:01 +0000 (+0000) Subject: Reset condition for each dependeny when generating mconf files. Previously all X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a07cb7db147e754a8c6658f7fa3bd67d8573b52d;p=openwrt%2Fsvn-archive%2Farchive.git Reset condition for each dependeny when generating mconf files. Previously all dependencys listed after a conditional dependency had the same condition. SVN-Revision: 14335 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index da29fdd895..fa30556205 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -375,7 +375,7 @@ sub mconf_depends { my $res; my $dep = shift; my $seen = shift; - my $condition = shift; + my $parent_condition = shift; $dep or $dep = {}; $seen or $seen = {}; @@ -386,11 +386,12 @@ sub mconf_depends { $depend =~ s/^([@\+]+)//; my $flags = $1; my $vdep; + my $condition; if ($depend =~ /^(.+):(.+)$/) { if ($1 ne "PACKAGE_$pkgname") { - if ($condition) { - $condition = "$condition && $1"; + if ($parent_condition) { + $condition = "$parent_condition && $1"; } else { $condition = $1; }