Pārlūkot izejas kodu

fetch/wget.py: Fix wget fetching of urls with parameters specified (from Poky)

Richard Purdie 15 gadi atpakaļ
vecāks
revīzija
5e8f28da75
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 2 1
      ChangeLog
  2. 1 1
      lib/bb/fetch/wget.py

+ 2 - 1
ChangeLog

@@ -170,7 +170,8 @@ Changes in Bitbake 1.9.x:
 	- Also allow user and pswd options in SRC_URIs globally (from Poky)
 	- Improve proxy handling when using mirrors (from Poky)
 	- Add bb.utils.prune_suffix function
-	- Fix hg checkouts of specific revisions
+	- Fix hg checkouts of specific revisions (from Poky)
+	- Fix wget fetching of urls with parameters specified (from Poky)
 
 Changes in Bitbake 1.8.0:
 	- Release 1.7.x as a stable series

+ 1 - 1
lib/bb/fetch/wget.py

@@ -66,7 +66,7 @@ class Wget(Fetch):
             uri_host = uri_decoded[1]
 
             bb.msg.note(1, bb.msg.domain.Fetcher, "fetch " + uri)
-            fetchcmd = fetchcmd.replace("${URI}", uri)
+            fetchcmd = fetchcmd.replace("${URI}", uri.split(";")[0])
             fetchcmd = fetchcmd.replace("${FILE}", ud.basename)
             httpproxy = None
             ftpproxy = None