From: Nicolas Thill Date: Sat, 3 Oct 2009 20:01:22 +0000 (+0000) Subject: [scripts] metadata.pl: fix a bug where dependency flags (@ and +) from a dependency... X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=96af4377ad67df4c0f1b274e1d39f615cafb6864;p=openwrt%2Fsvn-archive%2Farchive.git [scripts] metadata.pl: fix a bug where dependency flags (@ and +) from a dependency were inherited by others SVN-Revision: 17840 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index fdf5886ec0..d9fb19ffca 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -383,8 +383,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;