]> code.ossystems Code Review - openembedded-core.git/commitdiff
Allow %20 in a file name in the SRC_URI
authorC Michael Sundius <msundius@sundius.com>
Mon, 2 Aug 2010 21:56:11 +0000 (14:56 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:33 +0000 (14:46 +0000)
(Bitbake rev: f7c181a0f6ab0b4d33bf80a0e24a788de441f82b)

Signed-off-by: C Michael Sundius <msundius@sundius.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/fetch/wget.py

index dcc58c75e83dffd9498dde71077604a95e4c5b94..18503a03f7ba11fb1c7aa44b8ddc66e7ca27a49e 100644 (file)
@@ -27,6 +27,7 @@ BitBake build tools.
 
 import os
 import bb
+import urllib
 from   bb import data
 from   bb.fetch import Fetch
 from   bb.fetch import FetchError
@@ -45,7 +46,7 @@ class Wget(Fetch):
 
         url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}])
         ud.basename = os.path.basename(ud.path)
-        ud.localfile = data.expand(os.path.basename(url), d)
+        ud.localfile = data.expand(urllib.unquote(ud.basename), d)
 
         return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)