diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:33:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-10 23:36:45 +0000 |
commit | 2f7e2b2d79957d85a70f7bc61c17561bda837b77 (patch) | |
tree | 9689264faa1ae97a61243cb4064054f2b3bffbfb /lib/bb/fetch2/__init__.py | |
parent | 4674898eddaccf1b620b5c9f8ea9bb194fff37ee (diff) | |
download | bitbake-2f7e2b2d79957d85a70f7bc61c17561bda837b77.tar.gz |
bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not None
(From Poky rev: 05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 9fe4eb2c0..d62ba81b3 100644 --- a/lib/bb/fetch2/__init__.py +++ b/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) |