]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildhistory: Sync with bitbake changes
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 May 2013 10:40:40 +0000 (10:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 May 2013 10:49:43 +0000 (11:49 +0100)
Adjust to the recent changes in the git fetcher. This code should work
with current and previous versions of bitbake and can be cleaned up when
we move to new bitbake versions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 3b6ce994131b8c00d8aea19120828dece8aee928..d39408b9c80c6683f5002040504970e752019ca7 100644 (file)
@@ -554,7 +554,10 @@ def _get_srcrev_values(d):
         ud = urldata[scm]
         for name in ud.names:
             rev = ud.method.sortable_revision(scm, ud, d, name)
-            if rev.startswith(autoinc_templ):
+            # Clean this up when we next bump bitbake version
+            if type(rev) != str:
+                autoinc, rev = rev
+            elif rev.startswith(autoinc_templ):
                 rev = rev[len(autoinc_templ):]
             dict_srcrevs[name] = rev
             if 'tag' in ud.parm: