Add StepSaveSignature at mount install or update 98/174998/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 6 Apr 2018 00:29:59 +0000 (09:29 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 6 Apr 2018 00:54:05 +0000 (09:54 +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: Ie55c10fff95954dabe54b75e11ad555ad60ac07f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/tpk/tpk_installer.cc
src/tpk/tpk_mount_path.cc

index de71f5e1e1b894d18bd276f64544bafa30e5d79d..d23debdc032f975b9ed98011bb19c80eaedbb97d 100644 (file)
@@ -382,6 +382,7 @@ void TpkInstaller::MountInstallSteps() {
   AddStep<ci::pkgmgr::StepCheckRestriction>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
+  AddStep<ci::security::StepSaveSignature>();
   AddStep<tpk::configuration::StepAdjustInstallLocation>();
   AddStep<ci::security::StepPrivilegeCompatibility>(
       ci::security::StepPrivilegeCompatibility::InternalPrivType::TPK);
@@ -422,6 +423,7 @@ void TpkInstaller::MountUpdateSteps() {
   AddStep<ci::configuration::StepParsePreload>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
+  AddStep<ci::security::StepSaveSignature>();
   AddStep<tpk::configuration::StepAdjustInstallLocation>();
   AddStep<ci::security::StepPrivilegeCompatibility>(
       ci::security::StepPrivilegeCompatibility::InternalPrivType::TPK);
index ab9271580eb45343ac0edfc1f87e907d963d539a..31a654deadc340c3b58b049c0c9a438bdb21cab0 100644 (file)
@@ -13,9 +13,7 @@ const std::vector<std::string> kExtractEntries = {
   "bin",
   "lib",
   "shared/res",
-  "author-signature.xml",
-  "signature1.xml",
-  "signature2.xml"
+  "author-signature.xml"
 };
 
 const std::vector<std::string> kSymlinkEntries = {