mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:49:23 +02:00
Delete existing files before overwriting them for Darwin OS to avoid codesign issues
git-svn-id: trunk@49131 -
This commit is contained in:
parent
432cd5bdd3
commit
103599ede0
@ -6196,6 +6196,9 @@ Var
|
|||||||
FileStat: stat;
|
FileStat: stat;
|
||||||
{$endif UNIX}
|
{$endif UNIX}
|
||||||
begin
|
begin
|
||||||
|
{ First delete file on Darwin OS to avoid codesign issues }
|
||||||
|
if (Defaults.SourceOS=Darwin) and FileExists(Dest) then
|
||||||
|
SysDeleteFile(Dest);
|
||||||
Log(vlInfo,SInfoCopyingFile,[Src,Dest]);
|
Log(vlInfo,SInfoCopyingFile,[Src,Dest]);
|
||||||
FIn:=TFileStream.Create(Src,fmopenRead or fmShareDenyNone);
|
FIn:=TFileStream.Create(Src,fmopenRead or fmShareDenyNone);
|
||||||
Try
|
Try
|
||||||
|
Loading…
Reference in New Issue
Block a user