<div dir="ltr">Ah, good to know, sending v3.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 3:29 PM, Chris Larson <span dir="ltr">&lt;<a href="mailto:clarson@kergoth.com" target="_blank">clarson@kergoth.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 dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 6:04 AM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>* as reported by Enrico on #oe<br>
  11:06:50 &lt; ensc|w&gt; JaMa: might this be caused by dc78ef91a2bf01efb8028c9afbe69e506e016265<br>
  which checks for &#39;d.getVar(&#39;LICENSE_CREATE_PACKAGE&#39;, True)&#39; evaluating to &#39;True&#39; for every<br>
  string (including the default 0)<br>
<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.com</a>&gt;<br>
---<br>
 meta/classes/license.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass<br>
</div>index d4ebb26..229f755 100644<br>
<div>--- a/meta/classes/license.bbclass<br>
+++ b/meta/classes/license.bbclass<br>
@@ -103,7 +103,7 @@ python do_populate_lic() {<br>
 # it would be better to copy them in do_install_append, but find_license_filesa is python<br>
 python perform_packagecopy_prepend () {<br>
     enabled = d.getVar(&#39;LICENSE_CREATE_PACKAGE&#39;, True)<br>
-    if d.getVar(&#39;CLASSOVERRIDE&#39;, True) == &#39;class-target&#39; and enabled:<br>
</div>+    if d.getVar(&#39;CLASSOVERRIDE&#39;, True) == &#39;class-target&#39; and enabled == &quot;1&quot;:</blockquote></div><br></div>We do have an existing mechanism for handling boolean variables in a sane way, as an FYI.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">LICENSE_CREATE_PACKAGE[type] = &quot;boolean&quot;</div><div class="gmail_extra"><br></div><div class="gmail_extra">LICENSE_CREATE_PACKAGE = &quot;1&quot;</div>


<div class="gmail_extra">oe.data.typed_value(d, &#39;LICENSE_CREATE_PACKAGE&#39;) == True<br><div class="gmail_extra">LICENSE_CREATE_PACKAGE = &quot;0&quot;</div><div>oe.data.typed_value(d, &#39;LICENSE_CREATE_PACKAGE&#39;) == False</div>


<div><br></div><div>Available types: boolean, integer (with support for different bases), float (with support for hexadecimal floating point values), regex, choice (which lets you only allow from a set of possible string values), list (which does the (d.getVar() or &quot;&quot;).split() crap for you).</div>


<div><br></div><div>You can also INHERIT += &quot;type_check&quot;, and you&#39;ll know immediately at ConfigParsed time if any of the values are invalid for their specified types.</div><span class="HOEnZb"><font color="#888888">-- <br>
Christopher Larson</font></span></div>

</div>
</blockquote></div><br></div>