Skip to content

Commit

Permalink
Skip extra download of libiconv if SVN fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Jul 21, 2021
1 parent 3095eca commit 20f70c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Binary file modified fpcupdeluxe.res
Binary file not shown.
11 changes: 5 additions & 6 deletions installercore.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2274,19 +2274,18 @@ function TInstaller.DownloadBinUtils: boolean;
end;
end;

if (FUtilFiles[Counter].FileName='libiconv-2.dll') then continue;

if (NOT DownloadSuccess) then
begin
Infoln(localinfotext+'Downloading: ' + FUtilFiles[Counter].FileName + ' with SVN failed. Now trying normal download.',etInfo);
DownloadSuccess:=GetFile(FUtilFiles[Counter].RootURL + FUtilFiles[Counter].FileName,InstallPath+FUtilFiles[Counter].FileName);
end;

if NOT DownloadSuccess then
if (NOT DownloadSuccess) then
begin
//if (FUtilFiles[Counter].FileName<>'libiconv-2.dll') then
begin
Infoln(localinfotext+'Error downloading binutil: ' + FUtilFiles[Counter].FileName + ' into ' + ExtractFileDir(InstallPath) + '.',etError);
Inc(Errors);
end;
Infoln(localinfotext+'Error downloading binutil: ' + FUtilFiles[Counter].FileName + ' into ' + ExtractFileDir(InstallPath) + '.',etError);
Inc(Errors);
end
else
begin
Expand Down

0 comments on commit 20f70c0

Please sign in to comment.