mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user