<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 24 February 2016 at 15:27,  <span dir="ltr">&lt;<a href="mailto:mariano.lopez@linux.intel.com" target="_blank">mariano.lopez@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":ecv" class="a3s" style="overflow:hidden">+python () {<br>
+    # If the cve-check class is inherited it is needed to populate the<br>
+    # CVE database before checking the CVEs for all recipes.<br>
+    pn = d.getVar(&quot;PN&quot;, True)<br>
+    if pn.endswith(&quot;-native&quot;) and bb.data.inherits_class(&#39;cve-check&#39;, d):<br>
+        bb.build.addtask(&quot;do_populate_cve_db&quot;, &quot;do_build&quot;, &quot;do_populate_sysroot&quot;, d)<br>
+}</div></blockquote></div><br>Wouldn&#39;t this be better done as an explicit dependency of the class task?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>