[scripts] metadata.pl: fix a bug where dependency flags (@ and +) from a dependency...
authorNicolas Thill <nico@openwrt.org>
Sat, 3 Oct 2009 20:01:22 +0000 (20:01 +0000)
committerNicolas Thill <nico@openwrt.org>
Sat, 3 Oct 2009 20:01:22 +0000 (20:01 +0000)
SVN-Revision: 17840

scripts/metadata.pl

index fdf5886ec0fafbbed9e7b1d0e16667b2af1ce802..d9fb19ffcacc7caf12686f2c8c69bd6726093dd6 100755 (executable)
@@ -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;