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 8e60fc2558ac08f5dba3f05cae829d01d035a79f..834db03859caa6a44a69e4da63f2daa209d3712b 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 c1c4e7f33ba4a5bba78c22a8651a00fe9b87ada8..fa66402e48c37ea881803dba176963e3b0e9c83c 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);