Implement undo RemovePerUserStorageDirectories 44/277544/1
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 5 Jul 2022 12:37:53 +0000 (21:37 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Thu, 7 Jul 2022 07:10:36 +0000 (16:10 +0900)
If the uninstallation is failed after this step,
there is a problem that the user directory remains erased
so recreate the user directories removed by this step

Change-Id: Ib776b43fd7d9e313c1bb1d3251a9a89cce6e27f8
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/hybrid/hybrid_installer.cc
src/wgt/wgt_installer.cc

index 4748781..9bc672d 100644 (file)
@@ -240,7 +240,8 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
       AddStep<ci::pkgmgr::StepKillApps>();
       AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
       AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
-      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>(
+          wgt::filesystem::HybridAdditionalSharedDirs);
       AddStep<ci::pkgmgr::StepUnregisterApplication>();
       AddStep<ci::filesystem::StepRemoveTep>();
       AddStep<ci::filesystem::StepRemoveFiles>();
@@ -608,7 +609,8 @@ HybridInstaller::HybridInstaller(common_installer::PkgMgrPtr pkgmgr)
           ci::Plugin::ActionType::Uninstall);
       AddStep<ci::filesystem::StepRemoveGlobalAppSymlinks>();
       AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
-      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>(
+          wgt::filesystem::HybridAdditionalSharedDirs);
       AddStep<ci::pkgmgr::StepUnregisterApplication>();
       AddStep<wgt::encryption::StepRemoveEncryptionData>();
       AddStep<ci::security::StepUnregisterTrustAnchor>();
index bebc830..40a63f7 100755 (executable)
@@ -319,7 +319,8 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(
           ci::Plugin::ActionType::Uninstall);
-      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>(
+          wgt::filesystem::WgtAdditionalSharedDirs);
       AddStep<ci::pkgmgr::StepUnregisterApplication>();
       AddStep<ci::filesystem::StepRemoveTep>();
       AddStep<ci::filesystem::StepRemoveFiles>();
@@ -750,7 +751,8 @@ WgtInstaller::WgtInstaller(ci::PkgMgrPtr pkgrmgr)
       AddStep<ci::filesystem::StepOptionalAcquireExternalStorage>();
       AddStep<ci::pkgmgr::StepRunParserPlugin>(
           ci::Plugin::ActionType::Uninstall);
-      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>();
+      AddStep<ci::filesystem::StepRemovePerUserStorageDirectories>(
+          wgt::filesystem::WgtAdditionalSharedDirs);
       AddStep<ci::pkgmgr::StepUnregisterApplication>();
       AddStep<wgt::encryption::StepRemoveEncryptionData>();
       AddStep<ci::security::StepUnregisterTrustAnchor>();