]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: Fix the wget fetcher so parameter portions of uris are ignored
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 24 Oct 2008 13:57:02 +0000 (14:57 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 24 Oct 2008 13:57:02 +0000 (14:57 +0100)
bitbake-dev/lib/bb/fetch/wget.py
bitbake/lib/bb/fetch/wget.py

index 84ea81d87aeb6241f20c6055bf676a0838cdff53..88193755d158c1dc0e5f61e065d30b96212112d5 100644 (file)
@@ -61,7 +61,7 @@ class Wget(Fetch):
                 fetchcmd = data.getVar("FETCHCOMMAND", d, 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 = data.getVar("http_proxy", d, True)
             ftpproxy = data.getVar("ftp_proxy", d, True)
index 84ea81d87aeb6241f20c6055bf676a0838cdff53..88193755d158c1dc0e5f61e065d30b96212112d5 100644 (file)
@@ -61,7 +61,7 @@ class Wget(Fetch):
                 fetchcmd = data.getVar("FETCHCOMMAND", d, 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 = data.getVar("http_proxy", d, True)
             ftpproxy = data.getVar("ftp_proxy", d, True)