<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 24 February 2016 at 15:27, <span dir="ltr"><<a href="mailto:mariano.lopez@linux.intel.com" target="_blank">mariano.lopez@linux.intel.com</a>></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("PN", True)<br>
+ if pn.endswith("-native") and bb.data.inherits_class('cve-check', d):<br>
+ bb.build.addtask("do_populate_cve_db", "do_build", "do_populate_sysroot", d)<br>
+}</div></blockquote></div><br>Wouldn'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>