Change order of StepRemoveTemporaryDirectory 81/212681/1
authorIlho Kim <ilho159.kim@samsung.com>
Mon, 26 Aug 2019 05:38:00 +0000 (14:38 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Mon, 26 Aug 2019 05:38:00 +0000 (14:38 +0900)
In case installation terminated after StepUnzip,
recovery file doesn't have pkgid,
and then StepParseManifest will return RECOVERY_DONE,
and temporary file doesn't be removed

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

index aaaed4d..2e0efe3 100644 (file)
@@ -329,10 +329,10 @@ void HybridInstaller::DeltaSteps() {
 void HybridInstaller::RecoverySteps() {
   AddStep<ci::configuration::StepConfigure>(pkgmgr_);
   AddStep<ci::recovery::StepOpenRecoveryFile>();
+  AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
   AddStep<ci::configuration::StepParseManifest>(
       ci::configuration::StepParseManifest::ManifestLocation::RECOVERY,
       ci::configuration::StepParseManifest::StoreLocation::NORMAL);
-  AddStep<ci::filesystem::StepRemoveTemporaryDirectory>();
   AddStep<ci::filesystem::StepRecoverIcons>();
   AddStep<ci::pkgmgr::StepRecoverParserPlugin>();
   AddStep<ci::filesystem::StepRecoverManifest>();