All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] fetch2: kill parameters in uri_find_decoded
@ 2023-01-17 15:36 Pavel Zhukov
  2023-01-17 15:36 ` [PATCH 2/2] fetch2/tests: Add test for Mercurial Pavel Zhukov
  2023-01-17 23:13 ` [bitbake-devel] [PATCH 1/2] fetch2: kill parameters in uri_find_decoded Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Pavel Zhukov @ 2023-01-17 15:36 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Pavel Zhukov

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'

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
---
 bitbake/lib/bb/fetch2/__init__.py | 1 +
 1 file changed, 1 insertion(+)

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):
                     basename = os.path.basename(mirrortarball)
                     # Kill parameters, they make no sense for mirror tarballs
                     uri_decoded[5] = {}
+                    uri_find_decoded[5] = {}
                 elif ud.localpath and ud.method.supports_checksum(ud):
                     basename = os.path.basename(ud.localpath)
                 if basename:
-- 
2.39.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-18  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-17 15:36 [PATCH 1/2] fetch2: kill parameters in uri_find_decoded Pavel Zhukov
2023-01-17 15:36 ` [PATCH 2/2] fetch2/tests: Add test for Mercurial Pavel Zhukov
2023-01-17 23:13 ` [bitbake-devel] [PATCH 1/2] fetch2: kill parameters in uri_find_decoded Richard Purdie
2023-01-18  7:28   ` Pavel Zhukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.