mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
bitbake: fetch2: Print SCMs list when SRCREV_FORMAT is not set
This makes it easier to debug, especially when multipe SCMs like gitsm, otherwise we don't know why there are multiple SCMs. (Bitbake rev: 313fe5e86b254eadfdead706be4bd7b274d5e3c0) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
db91c23871
commit
acc242c7ec
@@ -777,7 +777,8 @@ def get_srcrev(d, method_name='sortable_revision'):
|
||||
#
|
||||
format = d.getVar('SRCREV_FORMAT')
|
||||
if not format:
|
||||
raise FetchError("The SRCREV_FORMAT variable must be set when multiple SCMs are used.")
|
||||
raise FetchError("The SRCREV_FORMAT variable must be set when multiple SCMs are used.\n"\
|
||||
"The SCMs are:\n%s" % '\n'.join(scms))
|
||||
|
||||
name_to_rev = {}
|
||||
seenautoinc = False
|
||||
|
||||
Reference in New Issue
Block a user