add proper build depends
[openwrt/openwrt.git] / openwrt / scripts / gen_deps.pl
index ef49fa3f418cb9b9a251d4ce33019fb1453c232b..40153bde3d10f6d96c01df1a74e145740237303d 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;
        };
 }