mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not None
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -864,7 +864,7 @@ class Fetch(object):
|
|||||||
if uselocalcount:
|
if uselocalcount:
|
||||||
count = Fetch.localcount_internal_helper(ud, d)
|
count = Fetch.localcount_internal_helper(ud, d)
|
||||||
if count is None:
|
if count is None:
|
||||||
count = localcounts[key + '_count']
|
count = localcounts[key + '_count'] or "0"
|
||||||
|
|
||||||
if last_rev == latest_rev:
|
if last_rev == latest_rev:
|
||||||
return str(count + "+" + latest_rev)
|
return str(count + "+" + latest_rev)
|
||||||
|
|||||||
Reference in New Issue
Block a user