[oe-commits] Richard Purdie : buildhistory: Sync with bitbake changes
git at git.openembedded.org
git at git.openembedded.org
Thu May 23 10:46:35 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 835b64d4e9ed7b627b56a75d529f1a403c5db1a8
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=835b64d4e9ed7b627b56a75d529f1a403c5db1a8
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Thu May 23 10:40:40 2013 +0000
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 at linuxfoundation.org>
---
meta/classes/buildhistory.bbclass | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 3b6ce99..d39408b 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:
More information about the Openembedded-commits
mailing list