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:
Richard Purdie 2011-02-01 23:33:19 +00:00
parent c7c4c6678b
commit 05954ef4d7
1 changed files with 1 additions and 1 deletions

View File

@ -864,7 +864,7 @@ class Fetch(object):
if uselocalcount:
count = Fetch.localcount_internal_helper(ud, d)
if count is None:
count = localcounts[key + '_count']
count = localcounts[key + '_count'] or "0"
if last_rev == latest_rev:
return str(count + "+" + latest_rev)