summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 23:33:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-01 23:33:19 +0000
commit05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c (patch)
treee676eb3d940051ea6c9141ce0d5ac9525b027e48
parentc7c4c6678b64192eb5eccc8c1385b6d9262f8df7 (diff)
downloadopenembedded-core-05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c.tar.gz
openembedded-core-05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c.tar.bz2
openembedded-core-05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c.zip
bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not None
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)