Home
last modified time | relevance | path

Searched refs:localpath (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Daz.py53 localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile)
54 bb.utils.mkdirhier(os.path.dirname(localpath))
55 fetchcmd += " -O %s" % shlex.quote(localpath)
70 if os.path.exists(ud.localpath):
87 if not os.path.exists(ud.localpath):
88 …e fetch command returned success for url %s but %s doesn't exist?!" % (azuri, ud.localpath), azuri)
90 if os.path.getsize(ud.localpath) == 0:
91 os.remove(ud.localpath)
H A Dlocal.py39 def localpath(self, urldata, d): member in Local
64 if os.path.exists(ud.localpath):
71 if self.supports_checksum(urldata) and not os.path.exists(urldata.localpath):
76 …le to find file " + urldata.url + " anywhere to download to " + urldata.localpath + ". The paths t…
85 if os.path.exists(urldata.localpath):
H A D__init__.py487 elif ud.localpath and ud.method.supports_checksum(ud):
488 basename = os.path.basename(ud.localpath)
569 def verify_checksum(ud, d, precomputed={}, localpath=None, fatal_nochecksum=True): argument
586 if localpath is None:
587 localpath = ud.localpath
595 checksum_data = getattr(bb.utils, "%s_file" % checksum_id)(localpath)
636 "least one to the recipe:" % ud.localpath)
649 "expected" % (localpath, ci["id"], ci["data"], ci["expected"]))
676 if not os.path.exists(ud.localpath):
694 if os.path.exists(ud.donestamp) and (os.path.isdir(ud.localpath) or
[all …]
H A Ds3.py90 cmd = '%s cp s3://%s%s %s' % (ud.basecmd, ud.host, ud.path, ud.localpath)
100 if not os.path.exists(ud.localpath):
101 … command returned success for s3://%s%s but %s doesn't exist?!" % (ud.host, ud.path, ud.localpath))
103 if os.path.getsize(ud.localpath) == 0:
104 os.remove(ud.localpath)
H A Dgcp.py71 blob.download_to_filename(ud.localpath)
78 if not os.path.exists(ud.localpath):
81 if os.path.getsize(ud.localpath) == 0:
82 os.remove(ud.localpath)
H A Dcvs.py61 if not os.path.exists(ud.localpath):
145 cmd = "tar %s -czf %s %s" % (tar_flags, ud.localpath, localdir)
148 cmd = "tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(moddir))
150 runfetchcmd(cmd, d, cleanup=[ud.localpath], workdir=workdir)
156 bb.utils.remove(ud.localpath)
H A Dnpmsw.py82 localpath = None
93 localpath = resolved
112 localpath = os.path.join(d.getVar("DL_DIR"), localfile)
116 resolvefile = localpath + ".resolved"
136 localpath = os.path.join(d.getVar("DL_DIR"), localfile)
140 localpath = resolved[5:]
176 "localpath": localpath,
H A Dwget.py107 localpath = os.path.join(dldir, ud.localfile) + ".tmp"
108 bb.utils.mkdirhier(os.path.dirname(localpath))
109 fetchcmd += " --output-document=%s" % shlex.quote(localpath)
130 if not os.path.exists(localpath):
131 …ror("The fetch command returned success for url %s but %s doesn't exist?!" % (uri, localpath), uri)
133 if os.path.getsize(localpath) == 0:
134 os.remove(localpath)
140 bb.fetch2.verify_checksum(ud, d, localpath=localpath, fatal_nochecksum=False)
144 os.rename(localpath, localpath[:-4])
H A Drepo.py50 … logger.debug("%s already exists (or was stashed). Skipping repo init / sync.", ud.localpath)
78 …runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.join(".", "*") ), d, workdir=c…
H A Dsvn.py169 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, ud.path_spec), d,
170 cleanup=[ud.localpath], workdir=ud.pkgdir)
177 bb.utils.remove(ud.localpath)
H A Dgit.py308 def localpath(self, ud, d): member in Git
356 self.ensure_symlink(ud.localpath, origud.fullshallow)
384 ud.localpath = ud.fullshallow
449 ud.localpath = ud.fullshallow
758 to_remove = [ud.localpath, ud.fullmirror, ud.fullmirror + ".done"]
761 if os.path.islink(ud.localpath):
762 clonedir = os.path.realpath(ud.localpath)
983 localpath = ud.localpath
984 rev_file = os.path.join(localpath, "oe-gitpkgv_" + rev)
985 if not os.path.exists(localpath):
H A Dclearcase.py199 if os.path.exists(ud.localpath):
238 … runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath], workdir = ud.viewdir)
H A Dbzr.py96 runfetchcmd("tar %s -czf %s %s" % (tar_flags, ud.localpath, os.path.basename(ud.pkgdir)),
97 d, cleanup=[ud.localpath], workdir=ud.pkgdir)
H A Dperforce.py234 runfetchcmd('tar -czf %s p4' % (ud.localpath), d, cleanup=[ud.localpath], workdir=ud.pkgdir)
238 bb.utils.remove(ud.localpath)
H A Dosc.py133 runfetchcmd("tar -czf %s %s" % (ud.localpath, ud.module), d,
134 cleanup=[ud.localpath], workdir=os.path.join(ud.pkgdir + ud.path))
H A Dhg.py81 if not os.path.exists(ud.localpath):
199 bb.utils.remove(ud.localpath, True)
234 def localpath(self, ud, d): member in Hg
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dsshcontrol.py154 def copy_to(self, localpath, remotepath): argument
155 if os.path.islink(localpath):
156 localpath = os.path.dirname(localpath) + "/" + os.readlink(localpath)
157 command = self.scp + [localpath, '%s@%s:%s' % (self.user, self.ip, remotepath)]
160 def copy_from(self, remotepath, localpath): argument
161 command = self.scp + ['%s@%s:%s' % (self.user, self.ip, remotepath), localpath]
164 def copy_dir_to(self, localpath, remotepath): argument
169 for root, dirs, files in os.walk(localpath):
172 tmp_dir = os.path.join(root, d).replace(localpath, "")
179 tmp_file = os.path.join(root, f).replace(localpath, "")
[all …]
/openbmc/openbmc/meta-arm/scripts/
H A Dmachine-summary.py52 def get_url_for_patch(layer: str, localpath: pathlib.Path, d) -> str:
53 relative = localpath.relative_to(layer_path(layer, d))
72 localpath = pathlib.Path(bb.fetch.decodeurl(src_uri)[2])
73 info["name"] = localpath.name
74 info["layer"] = bb.utils.get_file_layer(str(localpath), d)
75 info["url"] = get_url_for_patch(info["layer"], localpath, d)
78 with open(localpath, errors="ignore") as f:
/openbmc/openbmc/poky/meta/lib/oeqa/
H A Drunexported.py61 def copy_to(self, localpath, remotepath): argument
62 return self.connection.copy_to(localpath, remotepath)
64 def copy_from(self, remotepath, localpath): argument
65 return self.connection.copy_from(remotepath, localpath)
H A Dtargetcontrol.py79 def copy_to(self, localpath, remotepath): argument
80 return self.connection.copy_to(localpath, remotepath)
82 def copy_from(self, remotepath, localpath): argument
83 return self.connection.copy_from(remotepath, localpath)
/openbmc/openbmc/poky/meta/classes-global/
H A Duninative.bbclass81 localpath = fetcher.localpath(srcuri)
82 … if localpath != tarballpath and os.path.exists(localpath) and not os.path.exists(tarballpath):
93 os.symlink(localpath, tarballpath)
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dgitpkgv.bbclass81 if not os.path.exists(url.localpath):
86 vars = { 'repodir' : quote(url.localpath),
90 rev_file = os.path.join(url.localpath, "oe-gitpkgv_" + url.revision)
/openbmc/openbmc/poky/scripts/lib/recipetool/
H A Dappend.py121 localpath = bb.fetch2.localpath(item, rd)
123 if fnmatch.fnmatch(os.path.basename(localpath), workdirfile):
124 srcfile = 'file://%s' % localpath
127 srcfile = 'file://%s' % localpath
/openbmc/openbmc/poky/meta/classes/
H A Darchiver.bbclass221 local = fetch.localpath(url).rstrip("/");
374 localpath = None
382 localpath = mirror_path
385 if len(ud.mirrortarballs) and not localpath:
391 if not localpath:
392 bb.note('Using original download: %s' % (ud.localpath))
393 localpath = ud.localpath
395 if not localpath or not os.path.exists(localpath):
399 # We now have an appropriate localpath
401 cmd = 'cp -fpPRH %s %s' % (localpath, destdir)
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-h5py/
H A D0001-setup_build.py-avoid-absolute-path.patch23 def localpath(*args):

12