1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

bitbake/fetch2: Move ud.localfile setup into urldata_init

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-02-03 21:17:26 +00:00
parent 0e5404ceda
commit 972eb5faba
12 changed files with 30 additions and 22 deletions
+2 -2
View File
@@ -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):