mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:09:30 +02:00
* Avoid double newlines on Dos like systems in ExecuteFPC
* Add warning if FileAge returns -1 (which indicates failure) git-svn-id: trunk@20419 -
This commit is contained in:
parent
3dd4514724
commit
60bebca1ea
@ -1210,6 +1210,7 @@ ResourceString
|
|||||||
SWarnCleanPackagecomplete = 'Clean of package %s completed';
|
SWarnCleanPackagecomplete = 'Clean of package %s completed';
|
||||||
SWarnCanNotGetAccessRights = 'Warning: Failed to copy access-rights from file %s';
|
SWarnCanNotGetAccessRights = 'Warning: Failed to copy access-rights from file %s';
|
||||||
SWarnCanNotSetAccessRights = 'Warning: Failed to copy access-rights to file %s';
|
SWarnCanNotSetAccessRights = 'Warning: Failed to copy access-rights to file %s';
|
||||||
|
SWarnCanNotGetFileAge = 'Warning: Failed to get FileAge for %s';
|
||||||
|
|
||||||
SInfoPackageAlreadyProcessed = 'Package %s is already processed';
|
SInfoPackageAlreadyProcessed = 'Package %s is already processed';
|
||||||
SInfoCompilingTarget = 'Compiling target %s';
|
SInfoCompilingTarget = 'Compiling target %s';
|
||||||
@ -1222,7 +1223,7 @@ ResourceString
|
|||||||
SInfoCopyingFile = 'Copying file "%s" to "%s"';
|
SInfoCopyingFile = 'Copying file "%s" to "%s"';
|
||||||
SInfoDeletingFile = 'Deleting file "%s"';
|
SInfoDeletingFile = 'Deleting file "%s"';
|
||||||
SInfoSourceNewerDest = 'Source file "%s" (%s) is newer than destination "%s" (%s).';
|
SInfoSourceNewerDest = 'Source file "%s" (%s) is newer than destination "%s" (%s).';
|
||||||
SInfoFallbackBuildmode = 'Buildmode not spported by package, falling back to one by one unit compilation';
|
SInfoFallbackBuildmode = 'Buildmode not supported by package, falling back to one by one unit compilation';
|
||||||
|
|
||||||
SDbgComparingFileTimes = 'Comparing file "%s" time "%s" to "%s" time "%s".';
|
SDbgComparingFileTimes = 'Comparing file "%s" time "%s" to "%s" time "%s".';
|
||||||
SDbgCompilingDependenciesOfTarget = 'Compiling dependencies of target %s';
|
SDbgCompilingDependenciesOfTarget = 'Compiling dependencies of target %s';
|
||||||
@ -1387,8 +1388,17 @@ var
|
|||||||
installer.log(vlCommand,' '+ Copy(sLine, ipos + Length(snum), Length(sLine) - ipos - Length(snum) + 1));
|
installer.log(vlCommand,' '+ Copy(sLine, ipos + Length(snum), Length(sLine) - ipos - Length(snum) + 1));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
if (LineEnding=#13#10) and (ch=#13) and
|
||||||
sLine := '';
|
(ConsoleOutput.Position<BytesRead) then
|
||||||
|
begin
|
||||||
|
ConsoleOutput.Read(ch,1);
|
||||||
|
if ch=#10 then
|
||||||
|
sLine:=''
|
||||||
|
else
|
||||||
|
sLine:=ch;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
sLine := '';
|
||||||
BuffPos := ConsoleOutput.Position;
|
BuffPos := ConsoleOutput.Position;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -4247,6 +4257,7 @@ begin
|
|||||||
{ Return false if file not found or not accessible }
|
{ Return false if file not found or not accessible }
|
||||||
if DS=-1 then
|
if DS=-1 then
|
||||||
begin
|
begin
|
||||||
|
Log(vlWarning,SWarnCanNotGetFileAge,[Src]);
|
||||||
Result:=false;
|
Result:=false;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user