mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
srcrev_update: update to support bitbake in walnascar
Bitbake drop multiple branch/revision support for single git urls in walnascar release. Add support to srcrev_update bbclass to work on both versions of scm. Pick-to: 6.9 6.8 Change-Id: Ic72a508aa1e52a25a6b392930479421743cbbdf5 Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
This commit is contained in:
parent
ce8dfdae68
commit
8f6cb41085
|
|
@ -20,7 +20,10 @@ python do_srcrev_update() {
|
|||
d.setVar("__BBSRCREV_SEEN", "1")
|
||||
for scm in scms:
|
||||
ud = urldata[scm]
|
||||
for name in ud.names:
|
||||
if hasattr(ud, 'names'):
|
||||
name = ud.names[0]
|
||||
else:
|
||||
name = ud.name
|
||||
rev = ud.method.latest_revision(ud, d, name)
|
||||
srcrev = d.getVar("SRCREV_%s" % name)
|
||||
if srcrev is None: srcrev = d.getVar("SRCREV")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user