<div dir="ltr"><div><div><div><div>Hi, Christopher, Richard:<br><br></div>Thanks for the reviewing! And sorry to this delayed feedback, I was on a vacation.<br></div>I had send another patch set which tweaked the code like Christopher suggested, and added a test case for it.<br><br></div>the best,<br></div>thank you<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-05 10:07 GMT+02:00 Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 2015-10-03 at 11:35 -0700, Christopher Larson wrote:<br>
&gt;<br>
&gt; On Mon, Sep 28, 2015 at 6:11 AM, Ming Liu &lt;<a href="mailto:liu.ming50@gmail.com">liu.ming50@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         +                    if urldata.parm.get(&#39;subdir&#39;) != None:<br>
&gt;         +                        destdir = urldata.parm.get(&#39;subdir&#39;)<br>
&gt;         + &quot;/&quot; + destdir<br>
&gt;<br>
&gt; If you really care about the difference between None and the empty<br>
&gt; string, then this should be &#39;is not None&#39;, not &#39;!= None&#39;, but most<br>
&gt; likely you don&#39;t, in which case &#39;if urldata.parm.get(&#39;subdir&#39;)&#39; is<br>
&gt; sufficient, and cleaner. Also you do the parm.get() twice, it may be<br>
&gt; better to store that in a variable.<br>
<br>
</span>Chris is correct, this patch needs tweaking. This area of the code also<br>
keeps seeing various issues so I&#39;d like to ask that we add a test case<br>
for this in lib/bb/tests/ so we can ensure this doesn&#39;t regress in the<br>
future please.<br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
<br>
</blockquote></div><br></div>