summaryrefslogtreecommitdiff
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:40:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 11:49:43 +0100
commit835b64d4e9ed7b627b56a75d529f1a403c5db1a8 (patch)
tree04c94308a71eff99563f388493331da65e143e28 /meta/classes/buildhistory.bbclass
parent6f2aa32f10c24c84e581128bb3a976ef071197ac (diff)
downloadopenembedded-core-835b64d4e9ed7b627b56a75d529f1a403c5db1a8.tar.gz
openembedded-core-835b64d4e9ed7b627b56a75d529f1a403c5db1a8.tar.bz2
openembedded-core-835b64d4e9ed7b627b56a75d529f1a403c5db1a8.zip
buildhistory: Sync with bitbake changes
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>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 3b6ce99413..d39408b9c8 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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: