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

Message ID 30c3fc9cde8cb4893d7445798ec039d771fc3fd1.1387461614.git.kibo@prevas.dk
State Rejected
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim B√łndergaard Dec. 19, 2013, 2:03 p.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..9299f77 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 "")
+        if not provides:
+            d.set("PROVIDES_" + pkg, pkg)
 
     if not pkg_type in ("machine", "sdk", "canadian-cross"):
         return