summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorSvend Meyland Nicolaisen <public@smn.dk>2023-04-18 22:49:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-22 10:30:42 +0100
commitc078df73b9bea1dec54f08092d5590edec78cc37 (patch)
tree601d6c37890d967bf1d4e3037e7904d402320a3d /bitbake/lib/bb/cooker.py
parentc570cf17331cd84f1b0570db2f2881f0f0810c97 (diff)
downloadpoky-c078df73b9bea1dec54f08092d5590edec78cc37.tar.gz
bitbake: npmsw fetcher: Avoid instantiating Fetch class if url list is empty
Recipes containing both git and npmsw sources in the SRC_URI fail during fetch from the shrinkwrap. It seems that when the fetcher is fetching from the shrinkwrap, the SRCREV variable has been deleted but it till ends up fetching from the git source resulting in an error because SRCREV is undefined. The root cause of this is that the Fetch class defaults to urls from the SRC_URI when the urls parameter contains an empty list. This patch will ensure that Fetch is not instantiated if the urls list is empty. (Bitbake rev: e602963dfd505eef08702366383358d29ee20c4d) Signed-off-by: Svend Meyland Nicolaisen <public@smn.dk> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
0 files changed, 0 insertions, 0 deletions