Revert "Revert "Force uninstall for external storage packages"" 91/86191/1
authorJongHeon Choi <j-h.choi@samsung.com>
Wed, 31 Aug 2016 04:45:30 +0000 (13:45 +0900)
committerJongHeon Choi <j-h.choi@samsung.com>
Wed, 31 Aug 2016 04:45:42 +0000 (13:45 +0900)
This reverts commit 3b44494fae615048b82f7dac6905cc9aa23e2bfb.

Change-Id: I113e8f2ec6a37a630dd052513d7a88dc6712c407

src/hybrid/hybrid_installer.cc
src/wgt/wgt_installer.cc

index 00bfcb3..ea2cc76 100644 (file)
@@ -14,6 +14,7 @@
 #include <common/step/configuration/step_parse_manifest.h>
 #include <common/step/configuration/step_parse_preload.h>
 #include <common/step/filesystem/step_acquire_external_storage.h>
+#include <common/step/filesystem/step_optional_acquire_external_storage.h>
 #include <common/step/filesystem/step_clear_data.h>
 #include <common/step/filesystem/step_change_owner.h>
 #include <common/step/filesystem/step_copy.h>
@@ -194,7 +195,7 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
           ci::Plugin::ActionType::Uninstall);
       AddStep<ci::pkgmgr::StepKillApps>();
       AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
-      AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+      AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
       AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
       AddStep<ci::pkgmgr::StepUnregisterApplication>();
       AddStep<ci::security::StepRollbackDeinstallationSecurity>();
index ea96cf2..b728742 100755 (executable)
@@ -16,6 +16,7 @@
 #include <common/step/configuration/step_parse_manifest.h>
 #include <common/step/configuration/step_parse_preload.h>
 #include <common/step/filesystem/step_acquire_external_storage.h>
+#include <common/step/filesystem/step_optional_acquire_external_storage.h>
 #include <common/step/filesystem/step_change_owner.h>
 #include <common/step/filesystem/step_clear_data.h>
 #include <common/step/filesystem/step_copy.h>
@@ -192,7 +193,7 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
           ci::configuration::StepParseManifest::StoreLocation::NORMAL);
       AddStep<ci::pkgmgr::StepKillApps>();
       AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
-      AddStep<ci::filesystem::StepAcquireExternalStorage>(true);
+      AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(
           ci::Plugin::ActionType::Uninstall);
       AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();