diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index a0ed4442fb..1f4ec371a4 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
@@ -26,6 +26,7 @@ BitBake build tools. | |||
26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 26 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
27 | 27 | ||
28 | import os | 28 | import os |
29 | import urllib | ||
29 | import bb | 30 | import bb |
30 | import bb.utils | 31 | import bb.utils |
31 | from bb import data | 32 | from bb import data |
@@ -40,7 +41,7 @@ class Local(FetchMethod): | |||
40 | 41 | ||
41 | def urldata_init(self, ud, d): | 42 | def urldata_init(self, ud, d): |
42 | # We don't set localfile as for this fetcher the file is already local! | 43 | # We don't set localfile as for this fetcher the file is already local! |
43 | ud.basename = os.path.basename(ud.url.split("://")[1].split(";")[0]) | 44 | ud.basename = os.path.basename(urllib.unquote(ud.url.split("://")[1].split(";")[0])) |
44 | return | 45 | return |
45 | 46 | ||
46 | def localpath(self, url, urldata, d): | 47 | def localpath(self, url, urldata, d): |
@@ -49,6 +50,7 @@ class Local(FetchMethod): | |||
49 | """ | 50 | """ |
50 | path = url.split("://")[1] | 51 | path = url.split("://")[1] |
51 | path = path.split(";")[0] | 52 | path = path.split(";")[0] |
53 | path = urllib.unquote(path) | ||
52 | newpath = path | 54 | newpath = path |
53 | if path[0] != "/": | 55 | if path[0] != "/": |
54 | filespath = data.getVar('FILESPATH', d, True) | 56 | filespath = data.getVar('FILESPATH', d, True) |