Add StepSaveSignature at mount install or update 15/175015/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 6 Apr 2018 04:17:17 +0000 (13:17 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 6 Apr 2018 04:17:17 +0000 (13:17 +0900)
- Distributor signature don't have to be extracted because its value will be
  stored at separated directory.

Related changes: [app-installers] : https://review.tizen.org/gerrit/174993

Change-Id: I132f25356912e7f34894c1761f8a1bac2ac27303

src/wgt/step/filesystem/step_wgt_prepare_package_directory.cc
src/wgt/wgt_installer.cc

index 10c44a7..7275621 100644 (file)
@@ -23,8 +23,6 @@ const std::vector<std::string> kExtractEntries = {
   "config.xml",
   "index.html",
   "author-signature.xml",
-  "signature1.xml",
-  "signature2.xml"
 };
 
 const std::vector<std::string>& GetExtractEntries() {
index 96c9494..2ccdd6f 100755 (executable)
@@ -376,6 +376,7 @@ void WgtInstaller::MountInstallSteps() {
   AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
+  AddStep<ci::security::StepSaveSignature>();
   AddStep<ci::security::StepPrivilegeCompatibility>(
       ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
   AddStep<wgt::security::StepCheckSettingsLevel>();
@@ -420,6 +421,7 @@ void WgtInstaller::MountUpdateSteps() {
   AddStep<ci::configuration::StepParsePreload>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
+  AddStep<ci::security::StepSaveSignature>();
   AddStep<ci::security::StepPrivilegeCompatibility>(
       ci::security::StepPrivilegeCompatibility::InternalPrivType::WGT);
   AddStep<wgt::security::StepCheckSettingsLevel>();