mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +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;
|
||||
{$endif UNIX}
|
||||
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]);
|
||||
FIn:=TFileStream.Create(Src,fmopenRead or fmShareDenyNone);
|
||||
Try
|
||||
|
Loading…
Reference in New Issue
Block a user