<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 12 May 2019 at 10:18, Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The upstream git tag has a `upstream/&#39; prefix, such as:<br>
&gt;&gt;&gt; import re<br>
&gt;&gt;&gt; pattern = &quot;upstream/(?P&lt;pver&gt;\d+(\.\d+)+(\+\d+)*)&quot;<br>
&gt;&gt;&gt; string = &quot;upstream/6.1+20181013&quot;<br>
&gt;&gt;&gt; result = re.match(pattern, string)<br>
&gt;&gt;&gt; result[&#39;pver&#39;]<br>
&#39;6.1+20181013&#39;<br></blockquote><div><br></div><div>Have you checked with devtool that this actually works?</div><div><br></div><div> Before this commit:</div><div>alexander@alexander-box:~/development/poky$ devtool check-upgrade-status ncurses<br>INFO: ncurses                   6.1             6.1+20181013    Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt; 7a97a7f937762ba342d5b2fd7cd090885a809835</div><div><br></div><div>After the commit:<br></div><div>alexander@alexander-box:~/development/poky$ devtool check-upgrade-status ncurses</div><div>INFO: ncurses                   6.1             UNKNOWN_BROKEN  Hongxu Jia &lt;<a href="mailto:hongxu.jia@windriver.com">hongxu.jia@windriver.com</a>&gt;  <br></div><div><br></div><div>The code in bitbake/lib/bb/fetch2/git.py actually splits each tag with &#39;/&#39; as separator and takes only the last part for some reason, so those prefixes are never a part of the string that is matched against regex.<br></div><div>I&#39;ll send a revert in a moment.</div><div><br></div><div>Alex<br></div><div><br></div><div><br></div></div></div>