[1/1] library class: Ensure PROVIDES_ is always set
diff mbox

Message ID ff7bdc3bbac0f8fd1e26460da5c1b9e49681270f.1387454014.git.kibo@prevas.dk
State Superseded
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim B√łndergaard Dec. 19, 2013, 11:56 a.m. UTC
---
 classes/library.oeclass | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox

diff --git a/classes/library.oeclass b/classes/library.oeclass
index c8ee6a8..863c9bd 100644
--- a/classes/library.oeclass
+++ b/classes/library.oeclass
@@ -32,6 +32,10 @@  def library_depends(d):
         if not library_name + "-dev" in provides:
             provides.append(library_name + "-dev")
             d.set("PROVIDES_" + devpkg, " ".join(provides))
+    else:
+        provides = (d.get("PROVIDES_" + pkg) or "").split()
+        if not pkg in provides:
+            d.set("PROVIDES_" + pkg, pkg)
 
     if not pkg_type in ("machine", "sdk", "canadian-cross"):
         return