]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Add more parameter checking for CopyFileOnChange()
authorSteven Shi <steven.shi@intel.com>
Wed, 18 Sep 2019 03:21:09 +0000 (11:21 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Thu, 19 Sep 2019 00:48:31 +0000 (08:48 +0800)
commitb0c15fb128c518b9acd8611a2deea213e9e55193
tree9c197593012dfe4092e3520a015e40c6c928d823
parent82c1a2120855e7fe32417870910f4ce20dca97a3
BaseTools: Add more parameter checking for CopyFileOnChange()

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2193

The current CopyFileOnChange() method in Misc.py does not
accept the input SrcFile parameter as a dir, but the method
does not check the SrcFile is dir or not. This patch is to
add more input parameter type checking and error message output
for method CopyFileOnChange.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Common/Misc.py