mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 17:27:51 +00:00
target: Use busybox for file transfer operations
Ensure we use the busybox command in operations involved in file transfers.
This commit is contained in:
parent
1efcfed63f
commit
8af9f1a328
@ -899,8 +899,8 @@ class Target(object):
|
||||
for sources, dest in mapping.items():
|
||||
for source in sources:
|
||||
async with self._xfer_cache_path(source) as device_tempfile:
|
||||
await self.execute.asyn("cp -rL -- {} {}".format(quote(source), quote(device_tempfile)), as_root=as_root)
|
||||
await self.execute.asyn("{} chmod 0644 -- {}".format(self.busybox, quote(device_tempfile)), as_root=as_root)
|
||||
await self.execute.asyn(f"{quote(self.busybox)} cp -rL -- {quote(source)} {quote(device_tempfile)}", as_root=as_root)
|
||||
await self.execute.asyn(f"{quote(self.busybox)} chmod 0644 -- {quote(device_tempfile)}", as_root=as_root)
|
||||
do_pull([device_tempfile], dest)
|
||||
else:
|
||||
for sources, dest in mapping.items():
|
||||
|
Loading…
x
Reference in New Issue
Block a user