From 972eb5fababb33b5537fcfbbaf8e33ea820f0fee Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 3 Feb 2011 21:17:26 +0000 Subject: bitbake/fetch2: Move ud.localfile setup into urldata_init Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/local.py') 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): """ return urldata.type in ['file'] + def urldata_init(self, ud, d): + # We don't set localfile as for this fetcher the file is already local! + return + def localpath(self, url, urldata, d): """ Return the local filename of a given url assuming a successful fetch. @@ -53,7 +57,6 @@ class Local(Fetch): filesdir = data.getVar('FILESDIR', d, 1) if filesdir: newpath = os.path.join(filesdir, path) - # We don't set localfile as for this fetcher the file is already local! return newpath def download(self, url, urldata, d): -- cgit v1.2.3-54-g00ecf