Fix ManifestDirectInstall for mount installed pkg 07/167107/6
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 15 Jan 2018 10:50:14 +0000 (19:50 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 2 Feb 2018 07:16:52 +0000 (07:16 +0000)
- Add additional step to determine whether pkg is
  mount installed or not.
- Signature files will be extracted.

Related changes:
[app-installers] : https://review.tizen.org/gerrit/#/c/167144/

Change-Id: Iac19c7391265657c8b812a9424c9234dc58df179
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/tpk/tpk_installer.cc
src/tpk/tpk_mount_path.cc

index 5ca6fac..aa5b111 100644 (file)
@@ -48,6 +48,7 @@
 #include <common/step/filesystem/step_remove_zip_image.h>
 #include <common/step/filesystem/step_unzip.h>
 #include <common/step/filesystem/step_update_tep.h>
+#include <common/step/mount/step_check_mount_path.h>
 #include <common/step/mount/step_mount_unpacked.h>
 #include <common/step/mount/step_mount_install.h>
 #include <common/step/mount/step_mount_recover.h>
@@ -458,6 +459,7 @@ void TpkInstaller::ManifestDirectInstallSteps() {
   AddStep<ci::pkgmgr::StepCheckInstallable>();
   AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
   AddStep<tpk::filesystem::StepCheckPkgDirPath>();
+  AddStep<ci::mount::StepCheckMountPath>();
   AddStep<ci::configuration::StepParsePreload>();
   AddStep<tpk::pkgmgr::StepConvertXml>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
@@ -489,6 +491,7 @@ void TpkInstaller::ManifestDirectUpdateSteps() {
       ci::configuration::StepParseManifest::StoreLocation::NORMAL);
   AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
   AddStep<ci::configuration::StepParsePreload>();
+  AddStep<ci::mount::StepCheckMountPath>();
   AddStep<tpk::pkgmgr::StepConvertXml>();
   AddStep<ci::configuration::StepCheckTizenVersion>();
   AddStep<ci::security::StepCheckSignature>();
index 947dd5e..ab92715 100644 (file)
@@ -12,15 +12,15 @@ namespace {
 const std::vector<std::string> kExtractEntries = {
   "bin",
   "lib",
-  "shared/res"
+  "shared/res",
+  "author-signature.xml",
+  "signature1.xml",
+  "signature2.xml"
 };
 
 const std::vector<std::string> kSymlinkEntries = {
   "res",
-  "tizen-manifest.xml",
-  "author-signature.xml",
-  "signature1.xml",
-  "signature2.xml"
+  "tizen-manifest.xml"
 };
 
 }  // namespace