Skip Create symlink in MountUpdate case 27/286727/2
authorilho kim <ilho159.kim@samsung.com>
Thu, 12 Jan 2023 06:27:37 +0000 (15:27 +0900)
committerilho kim <ilho159.kim@samsung.com>
Fri, 13 Jan 2023 05:20:11 +0000 (14:20 +0900)
During MountUpdate, the symlink already exists
so there is no need to create a new symlinks

Change-Id: Ib6bfb7e926e8ec55cf991685378d437278b1ba2e
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/tpk/step/filesystem/step_tpk_prepare_package_directory.cc

index 5ee4033d656ddd4b6e39956a27b6ef9af059e57f..673e8ddbe5da8bc54e15afe7f5d250b7fc12d6a9 100644 (file)
@@ -69,6 +69,9 @@ ci::Step::Status StepTpkPreparePackageDirectory::PrepareLink(
       return Status::APP_DIR_ERROR;
     }
 
+    if (context_->request_type.get() == ci::RequestType::MountUpdate)
+      return Status::OK;
+
     bf::remove(destination, error);
     if (error) {
       LOG(ERROR) << "Failed to remove previous symlink";