summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())) /