From fdf2ef6333ea07eaaba1e538018e97edd620ef58 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Fri, 11 May 2018 15:45:57 +0900 Subject: [PATCH 01/16] Release version 0.10.2 Changes: - Add StepSaveSignature at mount install or update - Add signature removal process for hybrid pkg - Fix coding rule by including header - Add StepRevokeTrustAnchor steps for several installation cases. Change-Id: I5f87775ba01b93d8cd8fb47534bf5e03b01be9c4 Signed-off-by: Junghyun Yeon --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index 27edded..067c743 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.1 +Version: 0.10.2 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From c5d7db16d58d929d1f3dcc983c1002204578f35d Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 17 May 2018 20:06:49 +0900 Subject: [PATCH 02/16] Set default value of app-control visibility attribute Change-Id: I1567d0e729f3c47cfdf30fae003799198e9dc9ed Signed-off-by: Sangyoon Jang --- src/wgt/step/configuration/step_parse.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wgt/step/configuration/step_parse.cc b/src/wgt/step/configuration/step_parse.cc index 1637c54..58b5baf 100644 --- a/src/wgt/step/configuration/step_parse.cc +++ b/src/wgt/step/configuration/step_parse.cc @@ -625,6 +625,7 @@ bool StepParse::FillAppControl(manifest_x* manifest) { app_control->operation = strdup(control.operation().c_str()); app_control->mime = strdup(control.mime().c_str()); app_control->uri = strdup(control.uri().c_str()); + app_control->visibility = strdup("local-only"); app->appcontrol = g_list_append(app->appcontrol, app_control); } } -- 2.7.4 From 0001d423317ec8808343ffbc819d34bcd26956c9 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 17 May 2018 20:19:31 +0900 Subject: [PATCH 03/16] Release version 0.10.3 Changes: - Set default value of app-control visibility attribute Change-Id: I5c9987ab8c7efefaae6d9c3866551bf46025b07e Signed-off-by: Sangyoon Jang --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index 067c743..b8f1734 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.2 +Version: 0.10.3 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From 192eddd5a83d207a760c025c328e3096f8debdca Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Tue, 15 May 2018 20:29:49 +0900 Subject: [PATCH 04/16] Supplement ParserPlugin - Adjust order of steps. - Add StepRecoverParserPlugin. Related changes: [app-installers] : https://review.tizen.org/gerrit/178962 Change-Id: I1754f5b733b02da58135f40817dcbd8dac51eb0a Signed-off-by: Junghyun Yeon --- src/hybrid/hybrid_installer.cc | 4 ++-- src/wgt/wgt_installer.cc | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) mode change 100755 => 100644 src/wgt/wgt_installer.cc diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index b0e4e17..0789366 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -237,8 +237,6 @@ void HybridInstaller::UninstallSteps() { AddStep( ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, ci::configuration::StepParseManifest::StoreLocation::NORMAL); - AddStep( - ci::Plugin::ActionType::Uninstall); AddStep(); AddStep(); AddStep(); @@ -254,6 +252,8 @@ void HybridInstaller::UninstallSteps() { ci::security::StepPrivacyPrivilege::ActionType::Uninstall); AddStep(); AddStep(); + AddStep( + ci::Plugin::ActionType::Uninstall); AddStep(); } diff --git a/src/wgt/wgt_installer.cc b/src/wgt/wgt_installer.cc old mode 100755 new mode 100644 index 4119763..9fdf8df --- a/src/wgt/wgt_installer.cc +++ b/src/wgt/wgt_installer.cc @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include @@ -240,8 +241,6 @@ void WgtInstaller::UninstallSteps() { AddStep(); AddStep(); AddStep(); - AddStep( - ci::Plugin::ActionType::Uninstall); AddStep(); AddStep(); AddStep(); @@ -254,6 +253,8 @@ void WgtInstaller::UninstallSteps() { ci::security::StepPrivacyPrivilege::ActionType::Uninstall); AddStep(); AddStep(); + AddStep( + ci::Plugin::ActionType::Uninstall); AddStep(); } @@ -353,6 +354,7 @@ void WgtInstaller::RecoverySteps() { ci::configuration::StepParseManifest::ManifestLocation::RECOVERY, ci::configuration::StepParseManifest::StoreLocation::NORMAL); AddStep(); + AddStep(); AddStep(); AddStep(); AddStep(); -- 2.7.4 From 15c0a19f28f8587de0df391351e68ecb18633aca Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 26 Jun 2018 10:35:21 +0900 Subject: [PATCH 05/16] Release version 0.10.4 Changes: - Supplement ParserPlugin Change-Id: I4c29dc1f9f1b01030b4879fb4951c74444e381bb Signed-off-by: Sangyoon Jang --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index b8f1734..dad2aa2 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.3 +Version: 0.10.4 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From 436d2cee4a3a125699bf1ea22faf2bfe818f2fcf Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Thu, 21 Jun 2018 19:46:06 +0900 Subject: [PATCH 06/16] Add RecoverDB step and fix codes for it - This will be invoked when db has corrupted - Operations like ManifestDirectInstall will parse merged manifest so it does not have to merge configurations for hybrid pkg, so add options to determine merge or overwrites configurations. Related changes: [app-installers] : https://review.tizen.org/gerrit/182176 Change-Id: I5c7f96ab6b98ad751e08ef8ada75d5c63245e331 Signed-off-by: Junghyun Yeon --- src/hybrid/hybrid_installer.cc | 49 ++++++++++++++++++---- src/hybrid/hybrid_installer.h | 1 + .../step/configuration/step_merge_tpk_config.cc | 14 +++++-- .../step/configuration/step_merge_tpk_config.h | 11 +++++ src/wgt/wgt_installer.cc | 16 +++++++ src/wgt/wgt_installer.h | 1 + 6 files changed, 80 insertions(+), 12 deletions(-) diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index 0789366..b4798f5 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -153,7 +154,8 @@ void HybridInstaller::InstallSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); AddStep(); AddStep(); AddStep(); @@ -213,7 +215,8 @@ void HybridInstaller::UpdateSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); AddStep(); AddStep(); AddStep(); @@ -309,7 +312,8 @@ void HybridInstaller::DeltaSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); AddStep(); AddStep(); AddStep( @@ -385,7 +389,8 @@ void HybridInstaller::MountInstallSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); AddStep(); AddStep(); AddStep(); @@ -444,7 +449,8 @@ void HybridInstaller::MountUpdateSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); AddStep(); AddStep(); AddStep(); @@ -485,7 +491,8 @@ void HybridInstaller::ManifestDirectInstallSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); AddStep(); AddStep( ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE); @@ -527,7 +534,8 @@ void HybridInstaller::ManifestDirectUpdateSteps() { AddStep(); AddStep(); AddStep(); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); AddStep(); AddStep( ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE); @@ -549,7 +557,8 @@ void HybridInstaller::ManifestPartialInstallSteps() { AddStep(); AddStep( wgt::configuration::StepParse::ConfigLocation::INSTALLED, true); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); AddStep(); AddStep(); AddStep(); @@ -575,7 +584,8 @@ void HybridInstaller::ManifestPartialUpdateSteps() { AddStep(); AddStep( wgt::configuration::StepParse::ConfigLocation::INSTALLED, true); - AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); AddStep(); AddStep(); AddStep(); @@ -647,5 +657,26 @@ void HybridInstaller::MigrateExtImgSteps() { AddStep(); } +void HybridInstaller::RecoverDBSteps() { + AddStep(pkgmgr_); + AddStep( + ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, + ci::configuration::StepParseManifest::StoreLocation::NORMAL); + AddStep(); + AddStep(); + AddStep( + wgt::configuration::StepParse::ConfigLocation::INSTALLED, true); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH); + AddStep(); + AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); + AddStep(); +} + } // namespace hybrid diff --git a/src/hybrid/hybrid_installer.h b/src/hybrid/hybrid_installer.h index 8331393..54a4d82 100644 --- a/src/hybrid/hybrid_installer.h +++ b/src/hybrid/hybrid_installer.h @@ -44,6 +44,7 @@ class HybridInstaller : public common_installer::AppInstaller { void ManifestPartialUpdateSteps() override; void PartialUninstallSteps() override; void MigrateExtImgSteps() override; + void RecoverDBSteps() override; }; } // namespace hybrid diff --git a/src/hybrid/step/configuration/step_merge_tpk_config.cc b/src/hybrid/step/configuration/step_merge_tpk_config.cc index 15d59c3..d63d003 100644 --- a/src/hybrid/step/configuration/step_merge_tpk_config.cc +++ b/src/hybrid/step/configuration/step_merge_tpk_config.cc @@ -11,16 +11,24 @@ namespace hybrid { namespace configuration { +StepMergeTpkConfig::StepMergeTpkConfig( + common_installer::InstallerContext* context, + MergeType type) : Step(context), merge_type_(type) { +} + common_installer::Step::Status StepMergeTpkConfig::process() { HybridBackendData* data = static_cast(context_->backend_data.get()); manifest_x* tpk_data = data->tpk_manifest_data.get(); manifest_x* wgt_data = context_->manifest_data.get(); - wgt_data->application = - g_list_concat(wgt_data->application, tpk_data->application); - tpk_data->application = nullptr; + if (merge_type_ == MergeType::CONCAT) + wgt_data->application = + g_list_concat(wgt_data->application, tpk_data->application); + else + wgt_data->application = tpk_data->application; + tpk_data->application = nullptr; return Status::OK; } diff --git a/src/hybrid/step/configuration/step_merge_tpk_config.h b/src/hybrid/step/configuration/step_merge_tpk_config.h index 2171d59..6491d34 100644 --- a/src/hybrid/step/configuration/step_merge_tpk_config.h +++ b/src/hybrid/step/configuration/step_merge_tpk_config.h @@ -18,6 +18,14 @@ namespace configuration { */ class StepMergeTpkConfig : public common_installer::Step { public: + enum class MergeType { + CONCAT, // Concatenate configurations + OVERWRITE // Overwrite one with others + }; + + explicit StepMergeTpkConfig(common_installer::InstallerContext* context, + MergeType type); + using Step::Step; Status process() override; @@ -25,6 +33,9 @@ class StepMergeTpkConfig : public common_installer::Step { Status undo() override { return Status::OK; } Status precheck() override { return Status::OK; } + private: + MergeType merge_type_; + STEP_NAME(MergeTpkConfig) }; diff --git a/src/wgt/wgt_installer.cc b/src/wgt/wgt_installer.cc index 9fdf8df..aaf30eb 100644 --- a/src/wgt/wgt_installer.cc +++ b/src/wgt/wgt_installer.cc @@ -77,6 +77,7 @@ #include #include #include +#include #include #include #include @@ -734,4 +735,19 @@ void WgtInstaller::MigrateExtImgSteps() { AddStep(); } +void WgtInstaller::RecoverDBSteps() { + AddStep(pkgmgr_); + AddStep( + wgt::configuration::StepParse::ConfigLocation::INSTALLED, true); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT); + AddStep(); + AddStep(); + AddStep(); +} + } // namespace wgt diff --git a/src/wgt/wgt_installer.h b/src/wgt/wgt_installer.h index c25c2e1..8c0edcf 100644 --- a/src/wgt/wgt_installer.h +++ b/src/wgt/wgt_installer.h @@ -45,6 +45,7 @@ class WgtInstaller : public common_installer::AppInstaller { void DisablePkgSteps() override; void EnablePkgSteps() override; void MigrateExtImgSteps() override; + void RecoverDBSteps() override; }; } // namespace wgt -- 2.7.4 From cc46b86b2b0281f87c79b855ae2cc43522cdcedf Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Wed, 18 Jul 2018 14:45:56 +0900 Subject: [PATCH 07/16] Release version 0.10.5 Changes: - Add RecoverDB step and fix codes for it Change-Id: Ie28f4871ce62eac68e8c8f09ac496d3880770801 Signed-off-by: Junghyun Yeon --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index dad2aa2..9044659 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.4 +Version: 0.10.5 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From 1620424d6fb366ca7c4933929178377054602e82 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 23 Jul 2018 17:53:38 +0900 Subject: [PATCH 08/16] Fix RecoverDB request - Remove StepManifestAdjustment steps. Change-Id: I059c3db97e5d77ae9b5c09e28e87ba734a45d5ea Signed-off-by: Junghyun Yeon --- src/hybrid/hybrid_installer.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index b4798f5..cc24a5c 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -672,7 +672,6 @@ void HybridInstaller::RecoverDBSteps() { AddStep( ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH); AddStep(); - AddStep(); AddStep( hybrid::configuration::StepMergeTpkConfig::MergeType::OVERWRITE); AddStep(); -- 2.7.4 From 980eef349598ca124d6368bc1bd5692c90cb6246 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Tue, 7 Aug 2018 19:38:17 +0900 Subject: [PATCH 09/16] Replace StepRegisterTrustAnchor into StepRecoverTrustAnchor Related changes : [app-installers] : https://review.tizen.org/gerrit/#/c/186122 Change-Id: I97036bf8d5b2fd88b0655e0e27c728bd4a842030 Signed-off-by: Junghyun Yeon --- src/wgt/wgt_installer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgt/wgt_installer.cc b/src/wgt/wgt_installer.cc index aaf30eb..1c20ef8 100644 --- a/src/wgt/wgt_installer.cc +++ b/src/wgt/wgt_installer.cc @@ -82,6 +82,7 @@ #include #include #include +#include #include #include #include @@ -369,8 +370,7 @@ void WgtInstaller::RecoverySteps() { AddStep(); AddStep(); AddStep(); - AddStep( - ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE); + AddStep(); } void WgtInstaller::MountInstallSteps() { -- 2.7.4 From 80872595d3e479623988ee8d52616c1d1b2cae38 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Tue, 14 Aug 2018 16:42:48 +0900 Subject: [PATCH 10/16] Release version 0.10.6 Changes: - Fix RecoverDB request - Replace StepRegisterTrustAnchor into StepRecoverTrustAnchor Change-Id: I69867c8382c531dc5421a6ae02f16d0f8a04029d Signed-off-by: Junghyun Yeon --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index 9044659..f291892 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.5 +Version: 0.10.6 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From 7e076cac0686467c43cd89b821cccefce5112f14 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Thu, 29 Nov 2018 21:41:02 +0900 Subject: [PATCH 11/16] Add ReadonlyUpdateInstall/Uninstall mode for hybrid-backend Change-Id: I3007a3bcd696a100cc8c2b0374656d81ba6f47bb Signed-off-by: Sangyoon Jang --- src/hybrid/hybrid_installer.cc | 96 ++++++++++++++++++++++++++++++++++++++++++ src/hybrid/hybrid_installer.h | 2 + 2 files changed, 98 insertions(+) diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index cc24a5c..25eaa89 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -72,6 +74,7 @@ #include #include #include +#include #include #include #include @@ -93,6 +96,7 @@ #include "hybrid/step/encryption/step_encrypt_resources.h" #include "hybrid/step/pkgmgr/step_generate_xml.h" #include "wgt/step/configuration/step_parse.h" +#include "wgt/step/configuration/step_set_old_signature_files_location.h" #include "wgt/step/encryption/step_remove_encryption_data.h" #include "wgt/step/filesystem/step_copy_preview_icons.h" #include "wgt/step/filesystem/step_create_symbolic_link.h" @@ -627,6 +631,98 @@ void HybridInstaller::PartialUninstallSteps() { AddStep(); } +void HybridInstaller::ReadonlyUpdateInstallSteps() { + AddStep(pkgmgr_); + AddStep(); + AddStep(); + AddStep( + ci::configuration::StepParseManifest::ManifestLocation::PACKAGE, + ci::configuration::StepParseManifest::StoreLocation::NORMAL); + AddStep(); + AddStep( + wgt::configuration::StepParse::ConfigLocation::RESOURCE_WGT, true); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepPrivilegeCompatibility::InternalPrivType::BOTH); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, + ci::configuration::StepParseManifest::StoreLocation::BACKUP); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep( + hybrid::configuration::StepMergeTpkConfig::MergeType::CONCAT); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE); + AddStep( + ci::security::StepPrivacyPrivilege::ActionType::Update); + AddStep(); + AddStep( + ci::Plugin::ActionType::Upgrade); + AddStep(); + AddStep(); + AddStep(); +} + +void HybridInstaller::ReadonlyUpdateUninstallSteps() { + AddStep(pkgmgr_); + AddStep(); + AddStep(); + AddStep( + ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, + ci::configuration::StepParseManifest::StoreLocation::BACKUP); + AddStep(); + AddStep( + ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, + ci::configuration::StepParseManifest::StoreLocation::NORMAL); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep(); + AddStep( + ci::security::StepRegisterTrustAnchor::RegisterType::UPDATE); + AddStep( + ci::security::StepPrivacyPrivilege::ActionType::Update); + AddStep(); + AddStep(); + AddStep(ci::Plugin::ActionType::Upgrade); +} + void HybridInstaller::EnablePkgSteps() { AddStep(pkgmgr_); AddStep( diff --git a/src/hybrid/hybrid_installer.h b/src/hybrid/hybrid_installer.h index 54a4d82..b76cc10 100644 --- a/src/hybrid/hybrid_installer.h +++ b/src/hybrid/hybrid_installer.h @@ -43,6 +43,8 @@ class HybridInstaller : public common_installer::AppInstaller { void ManifestPartialInstallSteps() override; void ManifestPartialUpdateSteps() override; void PartialUninstallSteps() override; + void ReadonlyUpdateInstallSteps() override; + void ReadonlyUpdateUninstallSteps() override; void MigrateExtImgSteps() override; void RecoverDBSteps() override; }; -- 2.7.4 From 4621aa8e05e5e6fa6ff06bcfb69591611f3bd5ef Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 15 Jan 2019 17:32:14 +0900 Subject: [PATCH 12/16] Fix ManifestDirectPartialUpdate mode Fix manifest file location for update. The manifest which is located at ManifestLocation::INSTALLED(where is /usr/share/package/) contains all apps in package. Change-Id: I1b81f07145646f40f773df90525b796483091f02 Signed-off-by: Sangyoon Jang --- src/hybrid/hybrid_installer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hybrid/hybrid_installer.cc b/src/hybrid/hybrid_installer.cc index 25eaa89..95adccd 100644 --- a/src/hybrid/hybrid_installer.cc +++ b/src/hybrid/hybrid_installer.cc @@ -583,7 +583,7 @@ void HybridInstaller::ManifestPartialInstallSteps() { void HybridInstaller::ManifestPartialUpdateSteps() { AddStep(pkgmgr_); AddStep( - ci::configuration::StepParseManifest::ManifestLocation::INSTALLED, + ci::configuration::StepParseManifest::ManifestLocation::PACKAGE, ci::configuration::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep( -- 2.7.4 From d2a151bb5253521cf2b0cb13535fbb5f25b01db4 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 22 Jan 2019 15:56:26 +0900 Subject: [PATCH 13/16] Add attribute 'id' on app-control element Change-Id: I0b9bacb23ecdc062b76a6e71150d339acfc7de3f Signed-off-by: Hwankyu Jhun --- src/wgt/step/configuration/step_parse.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wgt/step/configuration/step_parse.cc b/src/wgt/step/configuration/step_parse.cc index 58b5baf..ec94a82 100644 --- a/src/wgt/step/configuration/step_parse.cc +++ b/src/wgt/step/configuration/step_parse.cc @@ -626,6 +626,7 @@ bool StepParse::FillAppControl(manifest_x* manifest) { app_control->mime = strdup(control.mime().c_str()); app_control->uri = strdup(control.uri().c_str()); app_control->visibility = strdup("local-only"); + app_control->id = strdup("no-name-app-control"); app->appcontrol = g_list_append(app->appcontrol, app_control); } } -- 2.7.4 From fadec6f5534d4212c91c3760fb019ce96b11fd1d Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 22 Jan 2019 16:30:02 +0900 Subject: [PATCH 14/16] Release version 0.11.0 Changes: - Add ReadonlyUpdateInstall/Uninstall mode for hybrid-backend - Fix ManifestDirectPartialUpdate mode - Add attribute 'id' on app-control element Change-Id: I1092e736cdb7a8fb9ce992850f0d8040c761e234 Signed-off-by: Hwankyu Jhun --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index f291892..71832fb 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.10.6 +Version: 0.11.0 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4 From fff005e051e312d9dd6d654a0d387ad4ac2e8f31 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 18 Feb 2019 10:54:06 +0900 Subject: [PATCH 15/16] Add dependency explicitly Change-Id: I8e1bdf8da1dc6019f58746af201fcaaa5986637a Signed-off-by: Junghyun Yeon --- src/unit_tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unit_tests/CMakeLists.txt b/src/unit_tests/CMakeLists.txt index 37022f8..5e98bc3 100644 --- a/src/unit_tests/CMakeLists.txt +++ b/src/unit_tests/CMakeLists.txt @@ -30,11 +30,13 @@ APPLY_PKG_CONFIG(${TARGET_SMOKE_TEST} PUBLIC Boost GTEST GUM_DEPS + VCONF_DEPS ) APPLY_PKG_CONFIG(${TARGET_SMOKE_TEST_EXTENSIVE} PUBLIC Boost GTEST GUM_DEPS + VCONF_DEPS ) APPLY_PKG_CONFIG(${TARGET_MANIFEST_TEST} PUBLIC Boost -- 2.7.4 From a32138eca3ca76cef9ba6c6c8b3bf326592307a6 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 18 Feb 2019 11:32:45 +0900 Subject: [PATCH 16/16] Release version 0.11.1 Changes: - Add dependency explicitly Change-Id: I552e71e47d81268af4d82a9b01dbad022dbe89fe Signed-off-by: Junghyun Yeon --- packaging/wgt-backend.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wgt-backend.spec b/packaging/wgt-backend.spec index 71832fb..7dab1c5 100644 --- a/packaging/wgt-backend.spec +++ b/packaging/wgt-backend.spec @@ -1,6 +1,6 @@ Name: wgt-backend Summary: Application installer backend for WGT -Version: 0.11.0 +Version: 0.11.1 Release: 1 Group: Application Framework/Package Management License: Apache-2.0 -- 2.7.4