Opkman: Bug fix: remove package compiling restriction

git-svn-id: branches/fixes_2_0@59076 -
This commit is contained in:
mattias 2018-09-19 09:11:17 +00:00
parent 73e27bc41f
commit bbe6d6932e

View File

@ -168,13 +168,8 @@ function TPackageInstaller.CompilePackage(const AIDEPackage: TIDEPackage;
ALazarusPkg: TLazarusPackage): Integer;
begin
Result := -1;
{$if declared(lcl_version)}
{$if (lcl_major > 0) and (lcl_minor > 6)}
//DoCompilePackage function is only available with Laz 1.7 +
DoOnPackageInstallProgress(imCompilePackage, ALazarusPkg);
Result := PackageEditingInterface.DoCompilePackage(AIDEPackage, [pcfCleanCompile, pcfDoNotSaveEditorFiles], False);
{$endif}
{$endif}
DoOnPackageInstallProgress(imCompilePackage, ALazarusPkg);
Result := PackageEditingInterface.DoCompilePackage(AIDEPackage, [pcfCleanCompile, pcfDoNotSaveEditorFiles], False);
end;
function TPackageInstaller.InstallPackage: Boolean;