]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/fetch2: Ensure the local revision counter takes a default value of 0, not...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Feb 2011 23:33:19 +0000 (23:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Feb 2011 23:33:19 +0000 (23:33 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py

index 9fe4eb2c025962eb38ec4d78fc9230973970863f..d62ba81b361fff2db82ae690a7dd35d7c58d3077 100644 (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)