add proper build depends
[openwrt.git] / scripts / gen_deps.pl
index ef49fa3..40153bd 100755 (executable)
@@ -18,8 +18,8 @@ while ($line = <>) {
                defined $pkg{$name} or $pkg{$name} = {};
                $pkg{$name}->{src} = $src;
        };
-       $line =~ /^Depends: \s*(.+)\s*$/ and do {
-               my @dep = split /,\s*/, $1;
+       $line =~ /^(Build-)?Depends: \s*(.+)\s*$/ and do {
+               my @dep = split /,\s*/, $2;
                $pkg{$name}->{depends} = \@dep;
        };
 }
This page took 0.028007 seconds and 4 git commands to generate.