Lines Matching full:ud

68     def supports(self, ud, d):  argument
72 return ud.type in ['http', 'https', 'ftp', 'ftps']
77 def urldata_init(self, ud, d): argument
78 if 'protocol' in ud.parm:
79 if ud.parm['protocol'] == 'git':
80 …a git repository using http, you need to instead use the git:// prefix with protocol=http", ud.url)
82 if 'downloadfilename' in ud.parm:
83 ud.basename = ud.parm['downloadfilename']
85 ud.basename = os.path.basename(ud.path)
87 ud.localfile = d.expand(urllib.parse.unquote(ud.basename))
88 if not ud.localfile:
89 ud.localfile = d.expand(urllib.parse.unquote(ud.host + ud.path).replace("/", "."))
96 def _runwget(self, ud, d, command, quiet, workdir=None): argument
100 logger.debug2("Fetching %s using command '%s'" % (ud.url, command))
101 bb.fetch2.check_network_access(d, command, ud.url)
104 def download(self, ud, d): argument
109 if 'downloadfilename' in ud.parm:
110 localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile)
114 if ud.user and ud.pswd:
116 if ud.parm.get("redirectauth", "1") == "1":
125 fetchcmd += " --user=%s --password=%s" % (ud.user, ud.pswd)
127 uri = ud.url.split(";")[0]
128 if os.path.exists(ud.localpath):
134 self._runwget(ud, d, fetchcmd, False)
138 if not os.path.exists(ud.localpath):
139 …("The fetch command returned success for url %s but %s doesn't exist?!" % (uri, ud.localpath), uri)
141 if os.path.getsize(ud.localpath) == 0:
142 os.remove(ud.localpath)
147 def checkstatus(self, fetch, ud, d, try_again=True): argument
336 uri = ud.url.split(";")[0]
350 if ud.user and ud.pswd:
351 add_basic_auth(ud.user + ':' + ud.pswd, r)
366 return self.checkstatus(fetch, ud, d, False)
374 return self.checkstatus(fetch, ud, d, False)
449 def _fetch_index(self, uri, ud, d): argument
458 self._runwget(ud, d, fetchcmd, True, workdir=workdir)
465 def _check_latest_version(self, url, package, package_regex, current_version, ud, d): argument
474 … soup = BeautifulSoup(self._fetch_index(url, ud, d), "html.parser", parse_only=SoupStrainer("a"))
505 def _check_latest_version_by_dir(self, dirver, package, package_regex, current_version, ud, d): argument
519 dirs_uri = bb.fetch.encodeurl([ud.type, ud.host,
520 ud.path.split(dirver)[0], ud.user, ud.pswd, {}])
523 …soup = BeautifulSoup(self._fetch_index(dirs_uri, ud, d), "html.parser", parse_only=SoupStrainer("a…
543 path = ud.path.replace(dirver, dirver_new, True) \
545 uri = bb.fetch.encodeurl([ud.type, ud.host, path,
546 ud.user, ud.pswd, {}])
549 package, package_regex, current_version, ud, d)
557 def _init_regexes(self, package, ud, d): argument
610 def latest_versionstring(self, ud, d): argument
616 package = ud.path.split("/")[-1]
625 package_regex = self._init_regexes(package, ud, d)
634 path = ud.path.split(package)[0]
647 package, package_regex, current_version, ud, d), '')
649 uri = bb.fetch.encodeurl([ud.type, ud.host, path, ud.user, ud.pswd, {}])
654 current_version, ud, d), '')