Re: [Patch] BaseTools: use shutil.copyfile instead shutil.copy2


Philippe Mathieu-Daudé <philmd@...>
 

On 7/28/21 1:45 PM, Bob Feng wrote:
In Split tool, the copy file actions only need to
copy file content but not need to copy file metadata.

copy2() copies the file metadata that causes split
unit test failed under edk2-basetools CI environment.

So this patch changes the call of copy2() to copyfile().

Signed-off-by: Bob Feng <bob.c.feng@...>
Cc: Liming Gao <gaoliming@...>
Cc: Yuwei Chen <yuwei.chen@...>
---
BaseTools/Source/Python/Split/Split.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Philippe Mathieu-Daude <philmd@...>

Join devel@edk2.groups.io to automatically receive all group messages.