Opkman: Bug fix: remove package compiling restriction.

git-svn-id: trunk@59064 -
This commit is contained in:
balazs 2018-09-18 18:53:52 +00:00
parent f249439c91
commit 8ee801d5b5

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;