From: Richard Purdie Date: Tue, 6 Jan 2009 19:56:02 +0000 (+0000) Subject: bitbake: Fix wget fetcher to better handle urls with ; followed by parameters in... X-Git-Tag: 2011-1~7647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec9a7de2a4e4c7c2b866f633d368100f4ec4809;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git bitbake: Fix wget fetcher to better handle urls with ; followed by parameters in the url --- diff --git a/bitbake-dev/lib/bb/fetch/wget.py b/bitbake-dev/lib/bb/fetch/wget.py index 0008a28700e..442fc3e489f 100644 --- a/bitbake-dev/lib/bb/fetch/wget.py +++ b/bitbake-dev/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 diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index 0008a28700e..442fc3e489f 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/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