Lines Matching full:ud
22 def supports(self, ud, d): argument
26 return ud.type in ["repo"]
28 def urldata_init(self, ud, d): argument
36 ud.basecmd = d.getVar("FETCHCMD_repo") or "/usr/bin/env repo"
38 ud.proto = ud.parm.get('protocol', 'git')
39 ud.branch = ud.parm.get('branch', 'master')
40 ud.manifest = ud.parm.get('manifest', 'default.xml')
41 if not ud.manifest.endswith('.xml'):
42 ud.manifest += '.xml'
44 …ud.localfile = d.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifes…
46 def download(self, ud, d): argument
49 if os.access(os.path.join(d.getVar("DL_DIR"), ud.localfile), os.R_OK):
50 … logger.debug("%s already exists (or was stashed). Skipping repo init / sync.", ud.localpath)
54 gitsrcname = "%s%s" % (ud.host, ud.path.replace("/", "."))
55 codir = os.path.join(repodir, gitsrcname, ud.manifest)
57 if ud.user:
58 username = ud.user + "@"
65 …s init -m %s -b %s -u %s://%s%s%s" % (ud.basecmd, ud.manifest, ud.branch, ud.proto, username, ud.h…
66 …md("%s init -m %s -b %s -u %s://%s%s%s" % (ud.basecmd, ud.manifest, ud.branch, ud.proto, username,…
68 bb.fetch2.check_network_access(d, "%s sync %s" % (ud.basecmd, ud.url), ud.url)
69 runfetchcmd("%s sync" % ud.basecmd, d, workdir=repodir)
71 scmdata = ud.parm.get("scmdata", "")
78 …runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.join(".", "*") ), d, workdir=c…
83 def _build_revision(self, ud, d): argument
84 return ud.manifest
86 def _want_sortable_revision(self, ud, d): argument