<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 30, 2014 at 9:21 AM, Alejandro Hernandez <span dir="ltr">&lt;<a href="mailto:alejandro.hernandez@linux.intel.com" target="_blank">alejandro.hernandez@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=":b1" class="a3s" style="overflow:hidden">Forcing <span class="il">strict</span> to be a string, to avoid problems when performing comparisons<br>
<br>
[YOCTO #6762]<br>
<br>
Signed-off-by: Alejandro Hernandez &lt;<a href="mailto:alejandro.hernandez@linux.intel.com">alejandro.hernandez@linux.intel.com</a>&gt;<br>
---<br>
 lib/bb/fetch2/__init__.py | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py<br>
index df2f2b0..10c3346 100644<br>
--- a/lib/bb/fetch2/__init__.py<br>
+++ b/lib/bb/fetch2/__init__.py<br>
@@ -543,8 +543,8 @@ def verify_checksum(ud, d):<br>
<br>
     if ud.method.recommends_checksum(ud):<br>
         # If <span class="il">strict</span> checking enabled and neither sum defined, raise error<br>
-        <span class="il">strict</span> = d.getVar(&quot;BB_STRICT_CHECKSUM&quot;, True) or None<br>
-        if <span class="il">strict</span> and not (ud.md5_expected or ud.sha256_expected):<br>
+        <span class="il">strict</span> = d.getVar(&quot;BB_STRICT_CHECKSUM&quot;, &quot;1&quot;) or &quot;0&quot;<br>
+        if (<span class="il">strict</span> == &quot;1&quot;) and not (ud.md5_expected or ud.sha256_expected):</div></blockquote></div><br>Why was True (second argument of getVar) changed to &quot;1&quot; here? It violates our conventions and doesn&#39;t actually change anything in the behavior.<br>-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>