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/wget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch2/wget.py') diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 88cb8c7fed..a281bdcb4f 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -40,12 +40,12 @@ class Wget(Fetch): """ return ud.type in ['http', 'https', 'ftp'] - def localpath(self, url, ud, d): + def urldata_init(self, ud, d): - url = encodeurl([ud.type, ud.host, ud.path, ud.user, ud.pswd, {}]) ud.basename = os.path.basename(ud.path) ud.localfile = data.expand(urllib.unquote(ud.basename), d) + def localpath(self, url, ud, d): return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) def download(self, uri, ud, d, checkonly = False): -- cgit v1.2.3-54-g00ecf