[Release] wrt-installer_0.1.114
[framework/web/wrt-installer.git] / src / jobs / widget_install / task_update_files.cpp
index 1c41e5d..75152ad 100644 (file)
@@ -58,7 +58,9 @@ TaskUpdateFiles::TaskUpdateFiles(InstallerContext& context) :
     DPL::TaskDecl<TaskUpdateFiles>(this),
     m_context(context)
 {
+    AddStep(&TaskUpdateFiles::StartStep);
     AddStep(&TaskUpdateFiles::StepBackupDirectory);
+    AddStep(&TaskUpdateFiles::EndStep);
 
     AddAbortStep(&TaskUpdateFiles::StepAbortBackupDirectory);
 }
@@ -85,10 +87,6 @@ void TaskUpdateFiles::StepBackupDirectory()
     }
 
     WrtUtilMakeDir(pkgPath);
-
-    m_context.job->UpdateProgress(
-        InstallerContext::INSTALL_CREATE_BACKUP_DIR,
-        "Backup directory created for update");
 }
 
 void TaskUpdateFiles::StepAbortBackupDirectory()
@@ -108,5 +106,19 @@ void TaskUpdateFiles::StepAbortBackupDirectory()
         LogError("Failed to rename " << backPath << " to " << pkgPath);
     }
 }
+
+void TaskUpdateFiles::StartStep()
+{
+    LogDebug("--------- <TaskUpdateFiles> : START ----------");
+}
+
+void TaskUpdateFiles::EndStep()
+{
+    m_context.job->UpdateProgress(
+        InstallerContext::INSTALL_CREATE_BACKUP_DIR,
+        "Backup directory created for update");
+
+    LogDebug("--------- <TaskUpdateFiles> : END ----------");
+}
 } //namespace WidgetInstall
 } //namespace Jobs