summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/local.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-03 21:17:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 09:06:35 +0000
commit972eb5fababb33b5537fcfbbaf8e33ea820f0fee (patch)
tree2bd453bc66853c72cb284067d6679d6f498cd77b /bitbake/lib/bb/fetch2/local.py
parent0e5404cedadaea6738ef6468d7eb8a24d23d9bab (diff)
downloadpoky-972eb5fababb33b5537fcfbbaf8e33ea820f0fee.tar.gz
bitbake/fetch2: Move ud.localfile setup into urldata_init
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/local.py')
-rw-r--r--bitbake/lib/bb/fetch2/local.py5
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):