IDE: open package link check if directory

git-svn-id: trunk@59452 -
This commit is contained in:
mattias 2018-11-05 10:29:58 +00:00
parent 7a10b4efe1
commit b05d125ae0

View File

@ -953,6 +953,11 @@ begin
PkgLink.LPKFileDateValid:=false;
exit(mrCancel);
end;
if DirectoryExistsUTF8(AFilename) then begin
DebugLn('Note: (lazarus) Invalid Package Link: file "'+AFilename+'" is a directory.');
PkgLink.LPKFileDateValid:=false;
exit(mrCancel);
end;
if pvPkgSearch in Verbosity then
debugln(['Info: (lazarus) Open dependency: package file found: "'+AFilename+'". Parsing lpk ...']);
try