diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/local.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index 89fbdf6ef1..56b20e56d3 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
| @@ -38,6 +38,10 @@ class Local(Fetch): | |||
| 38 | """ | 38 | """ |
| 39 | return urldata.type in ['file'] | 39 | return urldata.type in ['file'] |
| 40 | 40 | ||
| 41 | def urldata_init(self, ud, d): | ||
| 42 | # We don't set localfile as for this fetcher the file is already local! | ||
| 43 | return | ||
| 44 | |||
| 41 | def localpath(self, url, urldata, d): | 45 | def localpath(self, url, urldata, d): |
| 42 | """ | 46 | """ |
| 43 | Return the local filename of a given url assuming a successful fetch. | 47 | Return the local filename of a given url assuming a successful fetch. |
| @@ -53,7 +57,6 @@ class Local(Fetch): | |||
| 53 | filesdir = data.getVar('FILESDIR', d, 1) | 57 | filesdir = data.getVar('FILESDIR', d, 1) |
| 54 | if filesdir: | 58 | if filesdir: |
| 55 | newpath = os.path.join(filesdir, path) | 59 | newpath = os.path.join(filesdir, path) |
| 56 | # We don't set localfile as for this fetcher the file is already local! | ||
| 57 | return newpath | 60 | return newpath |
| 58 | 61 | ||
| 59 | def download(self, url, urldata, d): | 62 | def download(self, url, urldata, d): |
