[2/3] library-class: Setting package-qa flag is-library
diff mbox

Message ID bb4843f037702b4bbfbf666a0721b5110a5a09d0.1389010031.git.kibo@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Kim B√łndergaard Jan. 6, 2014, 12:08 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..8abd51e 100644
--- a/classes/library.oeclass
+++ b/classes/library.oeclass
@@ -20,6 +20,10 @@  def library_depends(d):
     devpkg = pkg + "-dev"
     pkg_depends = (d.get("DEPENDS_" + pkg) or "").split()
 
+    qaflags = (d.get_flag("PROVIDES_" + pkg,"qa") or "").split()
+    qaflags.append("is-library")
+    d.set_flag("PROVIDES_" + pkg, "qa", " ".join(qaflags))
+
     if not pkg.startswith("lib"):
         library_name = d.get("LIBRARY_NAME")
         if not library_name: