Lines Matching full:ud
25 def supports(self, ud, d): argument
29 return ud.type in ['az']
32 def checkstatus(self, fetch, ud, d, try_again=True): argument
35 ud.url = ud.url.replace('az://','https://').split(';')[0]
38 if az_sas and az_sas not in ud.url:
39 ud.url += az_sas
41 return Wget.checkstatus(self, fetch, ud, d, try_again)
44 def download(self, ud, d, retries=3): argument
52 # ud.localfile either has the downloadfilename or ud.path
53 localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile)
58 if ud.user and ud.pswd:
59 fetchcmd += " --user=%s --password=%s --auth-no-challenge" % (ud.user, ud.pswd)
65 azuri = '%s%s%s%s' % ('https://', ud.host, ud.path, az_sas)
67 azuri = '%s%s%s' % ('https://', ud.host, ud.path)
69 if os.path.exists(ud.localpath):
76 self._runwget(ud, d, fetchcmd, False)
82 self.download(ud, d, retries -1)
86 if not os.path.exists(ud.localpath):
87 …e fetch command returned success for url %s but %s doesn't exist?!" % (azuri, ud.localpath), azuri)
89 if os.path.getsize(ud.localpath) == 0:
90 os.remove(ud.localpath)