metadata.pl: fixpath exclusion of kernel packages
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Jun 2013 19:37:11 +0000 (19:37 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Jun 2013 19:37:11 +0000 (19:37 +0000)
module and build deps did not work for kernel modules

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37091 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pl

index ade86c8..17040d9 100755 (executable)
@@ -757,7 +757,7 @@ sub gen_package_mk() {
                                        $idx = $subdir{$dep}.$dep;
                                }
                                $idx .= $suffix;
-                               undef $idx if $idx =~ /^(kernel)|(base-files)$/;
+                               undef $idx if $idx =~ /^(kernel\/linux)|(base-files)$/;
                                if ($idx) {
                                        my $depline;
                                        next if $pkg->{src} eq $pkg_dep->{src}.$suffix;