All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fetch2/wget: include paramters in URL
@ 2020-12-29 15:13 Patrick Williams
  2020-12-29 21:05 ` Patrick Williams
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Patrick Williams @ 2020-12-29 15:13 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Patrick Williams

The wget fetcher currently silently drops all parameters and has
been that way since it was originally introduced in fetch via 080eb8764.
This prevents use in SOURCE_MIRROR_URL and SRC_URI which require
additional parameters.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
---
 lib/bb/fetch2/wget.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index e6d9f528..d41d7408 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -99,7 +99,13 @@ class Wget(FetchMethod):
         if ud.user and ud.pswd:
             fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (ud.user, ud.pswd)
 
-        uri = ud.url.split(";")[0]
+        # Join the URL components together.
+        urls = ud.url.split(";")
+        if len(urls) == 1:
+            uri = urls[0]
+        else:
+            uri = urls[0] + "?" + "&".join(urls[1:])
+
         if os.path.exists(ud.localpath):
             # file exists, but we didnt complete it.. trying again..
             fetchcmd += d.expand(" -c -P ${DL_DIR} '%s'" % uri)
-- 
2.26.2


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

end of thread, other threads:[~2020-12-30 22:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-29 15:13 [PATCH] fetch2/wget: include paramters in URL Patrick Williams
2020-12-29 21:05 ` Patrick Williams
2020-12-29 21:16 ` [PATCH v2] fetch2/wget: include parameters " Patrick Williams
2020-12-29 21:57 ` [PATCH v3] " Patrick Williams
2020-12-29 22:02   ` Patrick Williams
2020-12-30 22:03 ` [PATCH v4] " Patrick Williams
2020-12-30 22:06   ` Patrick Williams

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.