diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-02-01 01:16:01 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-02-01 01:16:01 +0000 |
commit | f42bf4d6cfcde855cb92c19484a48af5ed33d155 (patch) | |
tree | 7618468e1488d93bd800ba15b0e1a3d3e4eb5a69 | |
parent | 5901305e2bfa059459c6aec33fe3ba63b3df3c0d (diff) | |
download | mtk-20170518-f42bf4d6cfcde855cb92c19484a48af5ed33d155.zip mtk-20170518-f42bf4d6cfcde855cb92c19484a48af5ed33d155.tar.gz mtk-20170518-f42bf4d6cfcde855cb92c19484a48af5ed33d155.tar.bz2 |
Reset condition for each dependeny when generating mconf files. Previously all dependencys listed after a conditional dependency had the same condition.
SVN-Revision: 14335
-rwxr-xr-x | scripts/metadata.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index da29fdd..fa30556 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; } |