mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:39:44 +02:00
packager: fix TPkgFile.IsVirtual, use AFile.IsVirtual instead of FilenameIsAbsolute(AFilename) condition in TPkgManager.WarnAboutMissingPackageFiles
git-svn-id: trunk@30063 -
This commit is contained in:
parent
51d1c34af0
commit
f6d82e6429
@ -1688,7 +1688,7 @@ end;
|
||||
|
||||
function TPkgFile.IsVirtual: boolean;
|
||||
begin
|
||||
Result:=FilenameIsAbsolute(Filename);
|
||||
Result:=not FilenameIsAbsolute(Filename);
|
||||
end;
|
||||
|
||||
function TPkgFile.GetShortFilename(UseUp: boolean): string;
|
||||
|
@ -3379,7 +3379,7 @@ begin
|
||||
end;
|
||||
if (not APackage.IsVirtual) and FilenameIsAbsolute(AFilename) then
|
||||
APackage.LongenFilename(AFilename);
|
||||
if FilenameIsAbsolute(AFilename) then begin
|
||||
if not AFile.IsVirtual then begin
|
||||
if not FileExistsCached(AFilename) then begin
|
||||
if not APackage.IsVirtual then
|
||||
AFilename:=CreateRelativePath(AFilename,APackage.Directory);
|
||||
|
Loading…
Reference in New Issue
Block a user