Daiki Mizukami
|
eab1e87726
|
Utils::Cp: Deduplicate SystemCommand invocations
|
2024-06-09 22:59:24 +09:00 |
|
Daiki Mizukami
|
67f280eb53
|
Utils::Cp: Add force_system keyword argument
This fixes the test for `UnpackStrategy::Directory`, which needs the
`cp` command.
|
2024-06-09 07:57:56 +09:00 |
|
Daiki Mizukami
|
9156891c99
|
Utils::Cp: Use FileUtils.cp on Linux
`FileUtils.cp` is implemented with the lightweight `copy_file_range(2)`
syscall on Linux, so it's more performant than the plain `cp` command on
that platform.
cf. https://github.com/Homebrew/brew/pull/17373#pullrequestreview-2105629022
|
2024-06-08 20:25:19 +09:00 |
|
Daiki Mizukami
|
7cfcc596b9
|
Utils::Cp: Move macOS-specific code to extend/os/mac
|
2024-06-07 19:03:48 +09:00 |
|