Add GetArchiveInfo 01/227301/5
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 11 Mar 2020 06:02:26 +0000 (15:02 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 9 Apr 2020 05:35:02 +0000 (14:35 +0900)
Requires :
- [app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/228145/

Change-Id: I0fa47880207b598e7ae9ad6d4f87dadfdf529e96
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/tpk/CMakeLists.txt
src/tpk/tpk_installer.cc
src/tpk/tpk_installer.h

index c7460f06aaf1a13c78270d31e5df512ccb579bb7..33d8d23cd7207b628cd40a261102f3e4612c8e5e 100644 (file)
@@ -3,13 +3,15 @@ AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/configuration TPK_STEP_CON
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/filesystem TPK_STEP_FILESYSTEM_SRCS)
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/pkgmgr TPK_STEP_PKGMGR_SRCS)
 AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/security TPK_STEP_SECURITY_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/../lib LIB_SRCS)
 
 ADD_LIBRARY(${TARGET_LIBNAME_TPK} SHARED
        ${TPK_SRCS}
        ${TPK_STEP_CONFIGURATION_SRCS}
        ${TPK_STEP_FILESYSTEM_SRCS}
        ${TPK_STEP_PKGMGR_SRCS}
-       ${TPK_STEP_SECURITY_SRCS})
+       ${TPK_STEP_SECURITY_SRCS}
+       ${LIB_SRCS})
 ADD_EXECUTABLE(${TARGET_TPK_BACKEND} "tpk_backend.cc")
 
 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_TPK} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
@@ -22,6 +24,7 @@ APPLY_PKG_CONFIG(${TARGET_LIBNAME_TPK} PUBLIC
   TPK_MANIFEST_HANDLERS_DEPS
   CAPI_SYSTEM_INFO_DEPS
   TTRACE_DEPS
+  VCONF_DEPS
   Boost
 )
 
index a2b769f51703c2903b243612a1e1a709ef60d53c..7d3895412f8acd629ab4b8988ea4c06aaee93b5c 100644 (file)
@@ -6,6 +6,7 @@
 #include <common/step/security/step_privilege_compatibility.h>
 #include <common/step/security/step_recover_privilege_compatibility.h>
 
+#include "lib/tpk_archive_info.h"
 #include "tpk/step/configuration/step_adjust_install_location.h"
 #include "tpk/step/configuration/step_check_reinstall_manifest.h"
 #include "tpk/step/filesystem/step_create_external_storage_directories.h"
@@ -38,6 +39,11 @@ TpkInstaller::TpkInstaller(common_installer::PkgMgrPtr pkgmgr)
 TpkInstaller::~TpkInstaller() {
 }
 
+std::unique_ptr<ci::ArchiveInfo> TpkInstaller::GetArchiveInfo() {
+  std::unique_ptr<TpkArchiveInfo> archive_info;
+  archive_info.reset(new TpkArchiveInfo(pkgmgr_->GetRequestInfo(GetIndex())));
+  return archive_info;
+}
 
 void TpkInstaller::InstallSteps() {
   AppInstaller::InstallSteps();
index e80e5dd0274d72466f98c701a24b11d718a9251c..17332a231d7eb35c4b65647e3fff71056468b9ae 100644 (file)
@@ -22,6 +22,7 @@ class TpkInstaller : public common_installer::AppInstaller {
   explicit TpkInstaller(common_installer::PkgMgrPtr pkgmgr);
   ~TpkInstaller();
   void Prepare();
+  std::unique_ptr<common_installer::ArchiveInfo> GetArchiveInfo() override;
 
  protected:
   void InstallSteps() override;