summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlho Kim <ilho159.kim@samsung.com>2024-10-25 15:35:58 +0900
committerIlho Kim <ilho159.kim@samsung.com>2024-10-25 15:35:58 +0900
commit6977daea2260a9c5ee848497534f69b5197d2dd3 (patch)
tree3e9e6fce10a70afaa333609a349de21f0698208b
parent99d84089b3b94127ed10835adf20e5d4b69e8e92 (diff)
downloadapp-installers-6977daea2260a9c5ee848497534f69b5197d2dd3.tar.gz
app-installers-6977daea2260a9c5ee848497534f69b5197d2dd3.tar.bz2
app-installers-6977daea2260a9c5ee848497534f69b5197d2dd3.zip
Skip StepClearInstallLocation in the mic step
In the mic step, some files may be created in the package's location in advance before a package is installed Change-Id: I1077bc42cb4707805d7d60c3a89bdf1eb02d594a Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
-rw-r--r--src/common/step/filesystem/step_clear_install_location.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/step/filesystem/step_clear_install_location.cc b/src/common/step/filesystem/step_clear_install_location.cc
index aaf33cec..a073289c 100644
--- a/src/common/step/filesystem/step_clear_install_location.cc
+++ b/src/common/step/filesystem/step_clear_install_location.cc
@@ -9,12 +9,22 @@
#include "common/installer_context.h"
#include "common/utils/file_util.h"
+namespace {
+
+constexpr const char kPathPreloadInstallOnPosttrans[] =
+ "/tmp/.preload_install_on_posttrans";
+
+} // namespace
+
namespace fs = std::filesystem;
namespace common_installer {
namespace filesystem {
Step::Status StepClearInstallLocation::process() {
+ if (access(kPathPreloadInstallOnPosttrans, F_OK) == 0)
+ return Step::Status::OK;
+
fs::path install_path;
if (context_->storage.get() == Storage::EXTENDED) {
install_path = fs::path(GetExtendedRootAppPath(context_->uid.get())) /