]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
archiver.bbclass: Fix duplicated SRC_URIs for do_ar_original rbt/ar_srcuri
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 21 May 2020 04:01:35 +0000 (12:01 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 21 May 2020 04:04:14 +0000 (21:04 -0700)
commit990b33fc44d9449f1a3e7c9d6703a8ba225e681e
treef3764cff3bb363520d0ae00738e8cbcf979d801d
parent586061c469a3340ec3a60ff59dae2e9ee33c3398
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>
meta/classes/archiver.bbclass