fetch/wget.py: Fix wget fetching of urls with parameters specified (from Poky)
authorRichard Purdie <rpurdie@linux.intel.com>
Mon, 11 May 2009 21:29:24 +0000 (21:29 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 11 May 2009 21:29:24 +0000 (21:29 +0000)
ChangeLog
lib/bb/fetch/wget.py

index 2384cb9..6bd4ff3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -76,7 +76,8 @@ Changes in BitBake 1.8.12:
          proxies to work better. (from Poky)
        - Also allow user and pswd options in SRC_URIs globally (from Poky)
        - Improve proxy handling when using mirrors (from Poky)
-       - 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.10:
        - Psyco is available only for x86 - do not use it on other architectures.
index 0008a28..442fc3e 100644 (file)
@@ -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