]> code.ossystems Code Review - openembedded-core.git/commit
archiver.bbclass: Fix duplicated SRC_URIs for do_ar_original
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 21 May 2020 04:05:56 +0000 (21:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 24 May 2020 22:56:05 +0000 (23:56 +0100)
commitb244c4f3427cd07376d4b8f7d27e38735bcc90e7
treed0ab0c206cca997739af1550f535ff6e39e23c5a
parenteb8ae6702aa43e6d7a57bb46f4282af68e3dcd09
archiver.bbclass: Fix duplicated SRC_URIs for do_ar_original

The argument urls of bb.fetch2.Fetch(urls, d) are duplicated to SRC_URI, which caused errors like:

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
The SCMs are:
git://github.com/docker/notary.git;destsuffix=git/src/github.com/docker/notary
git://github.com/docker/notary.git

The first one is from original SRC_URI, the second one is from the
variable 'urls', so cleanup SRC_URI before call bb.fetch2.Fetch() can fix the
problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass