Force uninstall for external storage packages 79/86079/2
authorBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Tue, 30 Aug 2016 11:14:17 +0000 (13:14 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 30 Aug 2016 15:42:45 +0000 (08:42 -0700)
Now errors from StepAcquireExternalStorage are ignored in uninstall mode
by using StepOptionalAcquireExternalStorage instead of old step.

Requires:
 - https://review.tizen.org/gerrit/#/c/86078/

Change-Id: I1c6d7e010077e2f1dfdad0a73696fe0e8f77e16c

src/tpk/tpk_installer.cc

index 6e4354483a3202b10604a2bde8a0616b92e8688b..0481b35f8376c36db2324dd7c57912b711677ec6 100644 (file)
@@ -12,6 +12,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>
@@ -233,7 +234,7 @@ void TpkInstaller::UninstallSteps() {
       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<tpk::filesystem::StepRemoveExternalStorageDirectories>();
   AddStep<ci::pkgmgr::StepUnregisterApplication>();