package.bbclass: fix handling of kernel-modules which end with '-dev'
authorThomas Kunze <thommycheck@gmx.de>
Fri, 28 Mar 2008 14:45:21 +0000 (14:45 +0000)
committerThomas Kunze <thommycheck@gmx.de>
Fri, 28 Mar 2008 14:45:21 +0000 (14:45 +0000)
Kernel-modules which end with -dev get update-modules-dev
as RRECOMMENDS so update-modules-dev gets pulled in images.
So we blacklist kernel-module packages for now.

classes/package.bbclass

index eb43856..814715e 100644 (file)
@@ -904,7 +904,7 @@ python package_depchains() {
        for suffix in pkgs:
                for pkg in pkgs[suffix]:
                        (base, func) = pkgs[suffix][pkg]
-                       if suffix == "-dev":
+                       if suffix == "-dev" and not pkg.startswith("kernel-module-"):
                                pkg_adddeprrecs(pkg, base, suffix, func, depends, d)
                        if len(pkgs[suffix]) == 1:
                                pkg_addrrecs(pkg, base, suffix, func, rdepends, d)