metadata.pl: fixpath exclusion of kernel packages
authorJohn Crispin <john@openwrt.org>
Sat, 29 Jun 2013 19:37:11 +0000 (19:37 +0000)
committerJohn Crispin <john@openwrt.org>
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>
SVN-Revision: 37091

scripts/metadata.pl

index ade86c867c85ed11c8db876c3e2c0072098c4654..17040d9e365a8808411be3b3dc613c188c633c64 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;