summaryrefslogtreecommitdiff
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-10-03 20:01:22 +0000
committerNicolas Thill <nico@openwrt.org>2009-10-03 20:01:22 +0000
commitc9b0c63f0758f9d0f96846f0cdac3f167ba22b36 (patch)
treed04925b11a21260d2f25834bd29d7b8258d43a7d /scripts/metadata.pl
parent8183d10d17a37e7658619495fa1bf8ee04733cee (diff)
downloadmtk-20170518-c9b0c63f0758f9d0f96846f0cdac3f167ba22b36.zip
mtk-20170518-c9b0c63f0758f9d0f96846f0cdac3f167ba22b36.tar.gz
mtk-20170518-c9b0c63f0758f9d0f96846f0cdac3f167ba22b36.tar.bz2
metadata.pl: fix a bug where dependency flags (@ and +) from a dependency were inherited by others
SVN-Revision: 17840
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 41147d0..8f146c3 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -415,8 +415,8 @@ sub mconf_depends {
my @depends = @$depends;
foreach my $depend (@depends) {
my $m = "depends";
- $depend =~ s/^([@\+]+)//;
- my $flags = $1;
+ my $flags = "";
+ $depend =~ s/^([@\+]+)// and $flags = $1;
my $vdep;
my $condition = $parent_condition;