]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/image: ensure BAD_RECOMMENDATIONS supports pre-renamed package names
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 25 Jul 2013 12:25:49 +0000 (13:25 +0100)
committerSaul Wold <sgw@linux.intel.com>
Sun, 28 Jul 2013 06:28:28 +0000 (23:28 -0700)
Use runtime remapping on BAD_RECOMMENDATIONS just as we do with
variables such as IMAGE_INSTALL, so that we're specifying the name prior
to any renaming e.g. that done by debian.bbclass. Note that this is a
change in behaviour for renamed packages, however this is the correct
thing to be doing; a search of existing layers suggests this shouldn't
cause widespread incompatibilities.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/image.bbclass

index 380ed8e09dcdf473653fc3ca38b770c1be652520..cf02f88de510f6185587d6991d3a02e8cce9a2fd 100644 (file)
@@ -132,6 +132,7 @@ python () {
         pn = d.getVar('PN', True)
         runtime_mapping_rename("PACKAGE_INSTALL", pn, d)
         runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d)
+        runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d)
 
     # Ensure we have the vendor list for complementary package handling
     ml_vendor_list = ""