From: Richard Purdie Date: Tue, 1 Feb 2011 23:33:19 +0000 (+0000) Subject: bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not... X-Git-Tag: 2011-1~2592 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c;p=openembedded-core.git bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not None Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 9fe4eb2c02..d62ba81b36 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -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)