respect PARALLEL_INSTALL_MODULES when calculating RDEPENDS
authorPhil Blundell <philb@gnu.org>
Tue, 28 Jun 2005 12:33:35 +0000 (12:33 +0000)
committerPhil Blundell <philb@gnu.org>
Tue, 28 Jun 2005 12:33:35 +0000 (12:33 +0000)
BKrev: 42c1439fy5zZE1s-8d5wRPHtn_Hhwg

classes/kernel.bbclass

index 599a117..598380b 100644 (file)
@@ -277,7 +277,12 @@ python populate_packages_prepend () {
                                if not m:
                                        continue
                                on = legitimize_package_name(m.group(1))
-                               dependencies.append(format % on)
+                               dependency_pkg = format % on
+                               v = bb.data.getVar("PARALLEL_INSTALL_MODULES", d, 1) or "0"
+                               if v == "1":
+                                       kv = bb.data.getVar("KERNEL_MAJOR_VERSION", d, 1)
+                                       dependency_pkg = "%s-%s" % (dependency_pkg, kv)
+                               dependencies.append(dependency_pkg)
                        return dependencies
                return []