From b2aeb1481c33afe8332d5df493bbb1dd5bf88afa Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 15 Jan 2018 19:50:14 +0900 Subject: [PATCH] Fix ManifestDirectInstall for mount installed pkg - 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 --- src/tpk/tpk_installer.cc | 3 +++ src/tpk/tpk_mount_path.cc | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/tpk/tpk_installer.cc b/src/tpk/tpk_installer.cc index 5ca6fac..aa5b111 100644 --- a/src/tpk/tpk_installer.cc +++ b/src/tpk/tpk_installer.cc @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -458,6 +459,7 @@ void TpkInstaller::ManifestDirectInstallSteps() { AddStep(); AddStep(); AddStep(); + AddStep(); AddStep(); AddStep(); AddStep(); @@ -489,6 +491,7 @@ void TpkInstaller::ManifestDirectUpdateSteps() { ci::configuration::StepParseManifest::StoreLocation::NORMAL); AddStep(); AddStep(); + AddStep(); AddStep(); AddStep(); AddStep(); diff --git a/src/tpk/tpk_mount_path.cc b/src/tpk/tpk_mount_path.cc index 947dd5e..ab92715 100644 --- a/src/tpk/tpk_mount_path.cc +++ b/src/tpk/tpk_mount_path.cc @@ -12,15 +12,15 @@ namespace { const std::vector kExtractEntries = { "bin", "lib", - "shared/res" + "shared/res", + "author-signature.xml", + "signature1.xml", + "signature2.xml" }; const std::vector kSymlinkEntries = { "res", - "tizen-manifest.xml", - "author-signature.xml", - "signature1.xml", - "signature2.xml" + "tizen-manifest.xml" }; } // namespace -- 2.7.4