1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-04 09:17: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:
Douglas Raillard 2024-11-20 16:48:23 +00:00 committed by Marc Bonnici
parent 1efcfed63f
commit 8af9f1a328

View File

@ -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():