Check removable when uninstall package 13/61913/2
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 11 Mar 2016 06:28:32 +0000 (15:28 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 14 Mar 2016 03:15:03 +0000 (12:15 +0900)
Requires:
 - https://review.tizen.org/gerrit/61899

Change-Id: I02ad18a259206b8923825590a16045b9fd489b12
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/hybrid/hybrid_installer.cc
src/wgt/wgt_installer.cc

index 8e60fc2..834db03 100644 (file)
@@ -7,6 +7,7 @@
 #include <common/step/step_check_signature.h>
 #include <common/step/step_backup_icons.h>
 #include <common/step/step_backup_manifest.h>
+#include <common/step/step_check_removable.h>
 #include <common/step/step_configure.h>
 #include <common/step/step_copy.h>
 #include <common/step/step_copy_backup.h>
@@ -136,6 +137,7 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
       break;
     case ci::RequestType::Uninstall:
       AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+      AddStep<ci::pkgmgr::StepCheckRemovable>();
       AddStep<ci::parse::StepParseManifest>(
           ci::parse::StepParseManifest::ManifestLocation::INSTALLED,
           ci::parse::StepParseManifest::StoreLocation::NORMAL);
index c1c4e7f..fa66402 100644 (file)
@@ -9,6 +9,7 @@
 #include <common/step/step_backup_icons.h>
 #include <common/step/step_backup_manifest.h>
 #include <common/step/step_check_blacklist.h>
+#include <common/step/step_check_removable.h>
 #include <common/step/step_create_icons.h>
 #include <common/step/step_create_storage_directories.h>
 #include <common/step/step_create_per_user_storage_directories.h>
@@ -130,6 +131,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
     }
     case ci::RequestType::Uninstall: {
       AddStep<ci::configuration::StepConfigure>(pkgmgr_);
+      AddStep<ci::pkgmgr::StepCheckRemovable>();
       AddStep<ci::parse::StepParseManifest>(
           ci::parse::StepParseManifest::ManifestLocation::INSTALLED,
           ci::parse::StepParseManifest::StoreLocation::NORMAL);