aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC Michael Sundius <msundius@sundius.com>2010-08-02 14:56:11 -0700
committerChris Larson <chris_larson@mentor.com>2011-01-04 11:07:25 -0700
commitb801e442b0163a73fe4624e3a7dec4bf7bb63f3e (patch)
tree14860ef9d52f3dfca7e8f8e88b25ee81a98f555e
parente8d490bc2f26332f1763dce47fdd5791ce3b7e75 (diff)
downloadbitbake-1.10.tar.gz
bitbake-1.10.tar.bz2
bitbake-1.10.zip
Allow %20 in a file name in the SRC_URI1.10
Signed-off-by: C Michael Sundius <msundius@sundius.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/fetch/wget.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch/wget.py b/lib/bb/fetch/wget.py
index ae1c6ad1..38e93524 100644
--- a/lib/bb/fetch/wget.py
+++ b/lib/bb/fetch/wget.py
@@ -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
@@ -43,7 +44,7 @@ class Wget(Fetch):
url = bb.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)