mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
* Fix include file directory and return false for FileNewer if FileAge return -1
git-svn-id: trunk@20410 -
This commit is contained in:
parent
e6cdc2b744
commit
85c84bf128
@ -4244,6 +4244,12 @@ Var
|
||||
|
||||
begin
|
||||
DS:=FileAge(Src);
|
||||
{ Return false if file not found or not accessible }
|
||||
if DS=-1 then
|
||||
begin
|
||||
Result:=false;
|
||||
exit;
|
||||
end;
|
||||
DD:=FileAge(Dest);
|
||||
D1:=FileDateToDateTime(DS);
|
||||
D2:=FileDateToDateTime(DD);
|
||||
@ -4857,7 +4863,10 @@ begin
|
||||
depInclude :
|
||||
begin
|
||||
if D.TargetFileName<>'' then
|
||||
Result:=FileNewer(D.TargetFileName,OFN)
|
||||
begin
|
||||
TFN:=AddPathPrefix(APackage,D.TargetFileName);
|
||||
Result:=FileNewer(TFN,OFN);
|
||||
end;
|
||||
end;
|
||||
depPackage :
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user