From 749c566211473c2fa4d6a8c9952147cbb673c330 Mon Sep 17 00:00:00 2001 From: Piotr Ganicz Date: Tue, 15 Nov 2016 09:02:01 +0100 Subject: [PATCH] Fix StepCreateStorageDirectores This patch provides proper handling for following test case: 1. Crash installation before StepGenerateXML 2. Install again 3. The installation should be successful Change-Id: Ic55d86d5164ecb1f596f7ddc7d51cf16a0f6268e --- src/wgt/step/filesystem/step_create_symbolic_link.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wgt/step/filesystem/step_create_symbolic_link.cc b/src/wgt/step/filesystem/step_create_symbolic_link.cc index cbdbb7f..a814f04 100644 --- a/src/wgt/step/filesystem/step_create_symbolic_link.cc +++ b/src/wgt/step/filesystem/step_create_symbolic_link.cc @@ -42,6 +42,8 @@ bool StepCreateSymbolicLink::CreateSymlinksForApps() { common_installer::CreateDir(exec_path); exec_path /= bf::path(app->appid); + if (bf::exists(exec_path)) + bf::remove_all(exec_path); if (strcmp(app->component_type, "uiapp") == 0) { bf::create_symlink(bf::path(WRT_LAUNCHER), exec_path, error); -- 2.7.4