summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/wget.py3
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
28import os 28import os
29import bb 29import bb
30import urllib
30from bb import data 31from bb import data
31from bb.fetch import Fetch 32from bb.fetch import Fetch
32from bb.fetch import FetchError 33from 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