mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 02:59:13 +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
|
begin
|
||||||
DS:=FileAge(Src);
|
DS:=FileAge(Src);
|
||||||
|
{ Return false if file not found or not accessible }
|
||||||
|
if DS=-1 then
|
||||||
|
begin
|
||||||
|
Result:=false;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
DD:=FileAge(Dest);
|
DD:=FileAge(Dest);
|
||||||
D1:=FileDateToDateTime(DS);
|
D1:=FileDateToDateTime(DS);
|
||||||
D2:=FileDateToDateTime(DD);
|
D2:=FileDateToDateTime(DD);
|
||||||
@ -4857,7 +4863,10 @@ begin
|
|||||||
depInclude :
|
depInclude :
|
||||||
begin
|
begin
|
||||||
if D.TargetFileName<>'' then
|
if D.TargetFileName<>'' then
|
||||||
Result:=FileNewer(D.TargetFileName,OFN)
|
begin
|
||||||
|
TFN:=AddPathPrefix(APackage,D.TargetFileName);
|
||||||
|
Result:=FileNewer(TFN,OFN);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
depPackage :
|
depPackage :
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user