@@ -49,8 +49,7 @@ class Az(Wget):
fetchcmd = self.basecmd + ' --retry-connrefused --waitretry=5'
# We need to provide a localpath to avoid wget using the SAS
- # ud.localfile either has the downloadfilename or ud.path
- localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile)
+ localpath = ud.localpath
bb.utils.mkdirhier(os.path.dirname(localpath))
fetchcmd += " -O %s" % shlex.quote(localpath)
@@ -46,7 +46,7 @@ class Repo(FetchMethod):
def download(self, ud, d):
"""Fetch url"""
- if os.access(os.path.join(d.getVar("DL_DIR"), ud.localfile), os.R_OK):
+ if os.access(ud.localpath, os.R_OK):
logger.debug("%s already exists (or was stashed). Skipping repo init / sync.", ud.localpath)
return
@@ -82,8 +82,7 @@ class SFTP(FetchMethod):
port = '-P %d' % urlo.port
urlo.port = None
- dldir = d.getVar('DL_DIR')
- lpath = os.path.join(dldir, ud.localfile)
+ lpath = ud.localpath
user = ''
if urlo.userinfo:
@@ -95,7 +95,7 @@ class Wget(FetchMethod):
fetchcmd = self.basecmd
dldir = os.path.realpath(d.getVar("DL_DIR"))
- localpath = os.path.join(dldir, ud.localfile) + ".tmp"
+ localpath = ud.localpath + ".tmp"
bb.utils.mkdirhier(os.path.dirname(localpath))
fetchcmd += " -O %s" % shlex.quote(localpath)