summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2023-01-17 16:36:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-18 16:42:27 +0000
commite82805663f9c8976617006edfce1e7bcb1bd5c22 (patch)
treebaad4b2906bc42cb11551a92b1695797c3d50dac /bitbake
parent288cc5b879563f7f996733bc9da3b4316aa5ede0 (diff)
downloadpoky-e82805663f9c8976617006edfce1e7bcb1bd5c22.tar.gz
bitbake: fetch2: kill parameters in uri_find_decoded
Fixes: File "/bitbake/./lib/bb/fetch2/__init__.py", line 446, in uri_replace if uri_decoded[loc][k] != uri_find_decoded[loc][k]: KeyError: 'module' (Bitbake rev: 80421abd5bf3f1f751219c050fa93970cf1f2088) Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 893ec6f6bd..b1cd6b25c2 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -469,6 +469,7 @@ def uri_replace(ud, uri_find, uri_replace, replacements, d, mirrortarball=None):
469 basename = os.path.basename(mirrortarball) 469 basename = os.path.basename(mirrortarball)
470 # Kill parameters, they make no sense for mirror tarballs 470 # Kill parameters, they make no sense for mirror tarballs
471 uri_decoded[5] = {} 471 uri_decoded[5] = {}
472 uri_find_decoded[5] = {}
472 elif ud.localpath and ud.method.supports_checksum(ud): 473 elif ud.localpath and ud.method.supports_checksum(ud):
473 basename = os.path.basename(ud.localpath) 474 basename = os.path.basename(ud.localpath)
474 if basename: 475 if basename: