From 35ae7322014b800b28e42569216390d3eb7d30aa Mon Sep 17 00:00:00 2001 From: balazs Date: Mon, 21 Jan 2019 19:03:36 +0000 Subject: [PATCH] Opkman: Fix install bug. git-svn-id: trunk@60135 - --- components/onlinepackagemanager/opkman_installer.pas | 2 +- components/onlinepackagemanager/opkman_serializablepackages.pas | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/onlinepackagemanager/opkman_installer.pas b/components/onlinepackagemanager/opkman_installer.pas index ebff5db7db..a0636d53d3 100644 --- a/components/onlinepackagemanager/opkman_installer.pas +++ b/components/onlinepackagemanager/opkman_installer.pas @@ -266,7 +266,7 @@ begin if LazarusPkg.InternalVersion > LazarusPkg.InternalVersionOld then LazarusPkg.InternalVersionOld := LazarusPkg.InternalVersion; end; - if LazarusPkg.PackageType in [lptRunAndDesignTime, lptDesigntime] then + if IDEPackage.PackageType in [lptRunAndDesignTime, lptDesigntime] then begin DoOnPackageInstallProgress(imInstallPackage, LazarusPkg); if InstallPackage then diff --git a/components/onlinepackagemanager/opkman_serializablepackages.pas b/components/onlinepackagemanager/opkman_serializablepackages.pas index 0cefb0f53a..d78ff2bac2 100644 --- a/components/onlinepackagemanager/opkman_serializablepackages.pas +++ b/components/onlinepackagemanager/opkman_serializablepackages.pas @@ -1150,6 +1150,7 @@ begin if MetaPkg <> nil then begin HasUpdate := False; + MetaPkg.DownloadZipURL := FXML.GetValue(Path + 'DownloadZipURL', ''); MetaPkg.DisableInOPM := FXML.GetValue(Path + 'DisableInOPM', False); MetaPkg.Rating := FXML.GetValue(Path + 'Rating', 0); LazarusPkgCount := FXML.GetValue(Path + 'Count', 0);