aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commit288135971920592d9b3bc7c22c080fe43d88cdd4 (patch)
treecbe3ee87c8742c21f65ca8fcde35a0d201bb7604 /scripts
parentfa9a3365055ad0dea4d9534063d3d917d6fbe875 (diff)
downloadupstream-288135971920592d9b3bc7c22c080fe43d88cdd4.tar.gz
upstream-288135971920592d9b3bc7c22c080fe43d88cdd4.tar.bz2
upstream-288135971920592d9b3bc7c22c080fe43d88cdd4.zip
[scripts] metadata.pl: fix a bug where dependency flags (@ and +) from a dependency were inherited by others
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17840 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 41147d0ab8..8f146c3b00 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;