diff options
author | C Michael Sundius <msundius@sundius.com> | 2010-08-02 14:56:11 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:33 +0000 |
commit | 3e57e63b2d16fa3f1ec37a904e8538e00a301fdd (patch) | |
tree | d6a0455c04d57eef79d8cdd91f2424a7f1f609f2 /bitbake/lib | |
parent | 5c50d43cfa7558b293ca5806e1a4bd25eddb0567 (diff) | |
download | poky-3e57e63b2d16fa3f1ec37a904e8538e00a301fdd.tar.gz |
Allow %20 in a file name in the SRC_URI
(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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch/wget.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index dcc58c75e8..18503a03f7 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/lib/bb/fetch/wget.py | |||
@@ -27,6 +27,7 @@ BitBake build tools. | |||
27 | 27 | ||
28 | import os | 28 | import os |
29 | import bb | 29 | import bb |
30 | import urllib | ||
30 | from bb import data | 31 | from bb import data |
31 | from bb.fetch import Fetch | 32 | from bb.fetch import Fetch |
32 | from bb.fetch import FetchError | 33 | from bb.fetch import FetchError |
@@ -45,7 +46,7 @@ class Wget(Fetch): | |||
45 | 46 | ||
46 | url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}]) | 47 | url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}]) |
47 | ud.basename = os.path.basename(ud.path) | 48 | ud.basename = os.path.basename(ud.path) |
48 | ud.localfile = data.expand(os.path.basename(url), d) | 49 | ud.localfile = data.expand(urllib.unquote(ud.basename), d) |
49 | 50 | ||
50 | return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) | 51 | return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) |
51 | 52 | ||