Home
last modified time | relevance | path

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

12

/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/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)
69 if os.path.exists(ud.localpath):
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)
H A D__init__.py474 elif ud.localpath and ud.method.supports_checksum(ud):
475 basename = os.path.basename(ud.localpath)
556 def verify_checksum(ud, d, precomputed={}, localpath=None, fatal_nochecksum=True): argument
573 if localpath is None:
574 localpath = ud.localpath
582 checksum_data = getattr(bb.utils, "%s_file" % checksum_id)(localpath)
623 "least one to the recipe:" % ud.localpath)
636 "expected" % (localpath, ci["id"], ci["data"], ci["expected"]))
663 if not os.path.exists(ud.localpath):
681 if os.path.exists(ud.donestamp) and (os.path.isdir(ud.localpath) or
[all …]
H A Dlocal.py40 def localpath(self, urldata, d): member in Local
65 if os.path.exists(ud.localpath):
72 if self.supports_checksum(urldata) and not os.path.exists(urldata.localpath):
77 …le to find file " + urldata.url + " anywhere to download to " + urldata.localpath + ". The paths t…
86 if os.path.exists(urldata.localpath):
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 += " -O %s" % shlex.quote(localpath)
125 if os.path.exists(ud.localpath):
135 if not os.path.exists(localpath):
136 …ror("The fetch command returned success for url %s but %s doesn't exist?!" % (uri, localpath), uri)
138 if os.path.getsize(localpath) == 0:
139 os.remove(localpath)
145 bb.fetch2.verify_checksum(ud, d, localpath=localpath, fatal_nochecksum=False)
149 os.rename(localpath, localpath[:-4])
H A Dgomod.py136 if ud.localpath.endswith('.zip'):
140 name = os.path.basename(ud.localpath).rsplit('.', 1)[0] + '.mod'
142 with zipfile.ZipFile(ud.localpath) as zf:
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 Dclearcase.py201 if os.path.exists(ud.localpath):
240 … runfetchcmd('tar -czf "%s" .' % (ud.localpath), d, cleanup = [ud.localpath], workdir = ud.viewdir)
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 Dgit.py327 def localpath(self, ud, d): member in Git
395 ud.localpath = ud.fullshallow
723 to_remove = [ud.localpath, ud.fullmirror, ud.fullmirror + ".done"]
726 if os.path.islink(ud.localpath):
727 clonedir = os.path.realpath(ud.localpath)
954 localpath = ud.localpath
955 rev_file = os.path.join(localpath, "oe-gitpkgv_" + rev)
956 if not os.path.exists(localpath):
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 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/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/poky/bitbake/lib/bb/tests/
H A Dfetch.py2499 self.assertEqual(ud.localpath, os.path.join(self.dldir, "git2", ref['gitsrcname']))
2636 self.assertTrue(os.path.exists(ud.localpath))
2637 self.assertTrue(os.path.exists(ud.localpath + '.done'))
2651 self.assertTrue(os.path.exists(ud.localpath))
2654 with open(ud.localpath, 'wb') as f:
2659 self.assertTrue(os.path.exists(ud.localpath + '_bad-checksum_' + badsum))
2660 self.assertTrue(os.path.exists(ud.localpath))
2670 self.assertTrue(os.path.exists(ud.localpath))
2682 self.assertFalse(os.path.exists(ud.localpath))
2690 self.assertTrue(os.path.exists(ud.localpath))
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dgitpkgv.bbclass83 if not os.path.exists(url.localpath):
88 vars = { 'repodir' : quote(url.localpath),
92 rev_file = os.path.join(url.localpath, "oe-gitpkgv_" + rev)
/openbmc/openbmc/poky/meta/classes/
H A Darchiver.bbclass220 local = fetch.localpath(url).rstrip("/");
373 localpath = None
381 localpath = mirror_path
384 if len(ud.mirrortarballs) and not localpath:
390 if not localpath:
391 bb.note('Using original download: %s' % (ud.localpath))
392 localpath = ud.localpath
394 if not localpath or not os.path.exists(localpath):
398 # We now have an appropriate localpath
400 cmd = 'cp -fpPRH %s %s' % (localpath, destdir)
/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

12