From e9066d1dfba6fcec605122592e67b771440cfa13 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 3 Oct 2009 20:01:22 +0000 Subject: [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 --- scripts/metadata.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/metadata.pl') diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 41147d0ab..8f146c3b0 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; -- cgit v1.2.3