Implement recovery of ReadonlyUpdateUninstall
[platform/core/appfw/app-installers.git] / src / common / step / recovery / step_recovery.cc
index 1e4dc39..2c541d1 100644 (file)
@@ -33,6 +33,8 @@ Step::Status StepRecovery::process() {
     return RecoveryMountUpdate();
   case RequestType::ReadonlyUpdateInstall:
     return RecoveryReadonlyUpdateInstall();
+  case RequestType::ReadonlyUpdateUninstall:
+    return RecoveryReadonlyUpdateUninstall();
   default:
     LOG(ERROR) << "Recovery is not supported for given type of installation";
     return Status::RECOVERY_ERROR;
@@ -59,6 +61,10 @@ Step::Status StepRecovery::RecoveryReadonlyUpdateInstall() {
   return RecoveryUpdate();
 }
 
+Step::Status StepRecovery::RecoveryReadonlyUpdateUninstall() {
+  return RecoveryReadonlyUpdateInstall();
+}
+
 Step::Status StepRecovery::Cleanup() {
   return Status::OK;
 }