diff options
author | C Michael Sundius <msundius@sundius.com> | 2010-08-02 14:56:11 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-08-18 19:39:25 -0700 |
commit | f7c181a0f6ab0b4d33bf80a0e24a788de441f82b (patch) | |
tree | 232360369216ed284604c9b7ad7ad3c4954b7a23 | |
parent | 57018687f60b222ab220dd904c4bf870780171e9 (diff) | |
download | bitbake-f7c181a0f6ab0b4d33bf80a0e24a788de441f82b.tar.gz |
Allow %20 in a file name in the SRC_URI
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.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch/wget.py b/lib/bb/fetch/wget.py index dcc58c75e..18503a03f 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 @@ -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) |