summaryrefslogtreecommitdiffstats
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:51:53 +0100
commite8197722de1f6006ceae0d4266de91c1db7278e3 (patch)
tree1055f28de7957db499ea476bb3a0592c74b1ef53
parentf7b639e527a65f9ce77aef07651ac5ec1e094e52 (diff)
downloadpoky-e8197722de1f6006ceae0d4266de91c1db7278e3.tar.gz
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. (From OE-Core rev: 835b64d4e9ed7b627b56a75d529f1a403c5db1a8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
554 ud = urldata[scm] 554 ud = urldata[scm]
555 for name in ud.names: 555 for name in ud.names:
556 rev = ud.method.sortable_revision(scm, ud, d, name) 556 rev = ud.method.sortable_revision(scm, ud, d, name)
557 if rev.startswith(autoinc_templ): 557 # Clean this up when we next bump bitbake version
558 if type(rev) != str:
559 autoinc, rev = rev
560 elif rev.startswith(autoinc_templ):
558 rev = rev[len(autoinc_templ):] 561 rev = rev[len(autoinc_templ):]
559 dict_srcrevs[name] = rev 562 dict_srcrevs[name] = rev
560 if 'tag' in ud.parm: 563 if 'tag' in ud.parm: