]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: use shutil.copyfile instead shutil.copy2
authorBob Feng <bob.c.feng@intel.com>
Wed, 28 Jul 2021 11:45:23 +0000 (19:45 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 2 Aug 2021 03:52:15 +0000 (03:52 +0000)
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@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>

No differences found