summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/az.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/az.py')
-rw-r--r--bitbake/lib/bb/fetch2/az.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/az.py b/bitbake/lib/bb/fetch2/az.py
index 3ccc594c22..346124a8bf 100644
--- a/bitbake/lib/bb/fetch2/az.py
+++ b/bitbake/lib/bb/fetch2/az.py
@@ -66,11 +66,12 @@ class Az(Wget):
66 else: 66 else:
67 azuri = '%s%s%s' % ('https://', ud.host, ud.path) 67 azuri = '%s%s%s' % ('https://', ud.host, ud.path)
68 68
69 dldir = d.getVar("DL_DIR")
69 if os.path.exists(ud.localpath): 70 if os.path.exists(ud.localpath):
70 # file exists, but we didnt complete it.. trying again. 71 # file exists, but we didnt complete it.. trying again.
71 fetchcmd += d.expand(" -c -P ${DL_DIR} '%s'" % azuri) 72 fetchcmd += " -c -P %s '%s'" % (dldir, azuri)
72 else: 73 else:
73 fetchcmd += d.expand(" -P ${DL_DIR} '%s'" % azuri) 74 fetchcmd += " -P %s '%s'" % (dldir, azuri)
74 75
75 try: 76 try:
76 self._runwget(ud, d, fetchcmd, False) 77 self._runwget(ud, d, fetchcmd, False)