Change path of directory for mount point of MountInstall mode 65/230965/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 6 Apr 2020 03:55:41 +0000 (12:55 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 16 Apr 2020 08:04:43 +0000 (08:04 +0000)
Change-Id: I6752b57f2cd856c800d548a9eab065e784f64b48
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
(cherry picked from commit 5dd2625829eaeefb50e75bf30eb54ad088915474)

src/common/step/mount/step_mount_unpacked.cc

index 3bed9e6..de79bf6 100644 (file)
 namespace bf = boost::filesystem;
 namespace bs = boost::system;
 
+namespace {
+
+const char kPackageUnpackDirPath[] = UNPACKDIR;
+
+}  // namespace
+
 namespace common_installer {
 namespace mount {
 
 Step::Status StepMountUnpacked::process() {
-  bf::path tmp_dir = GenerateTmpDir(context_->root_application_path.get());
+  bf::path tmp_dir = GenerateTmpDir(kPackageUnpackDirPath);
   context_->unpacked_dir_path.set(tmp_dir);
 
   TzipInterface tzip(context_->unpacked_dir_path.get());