Fix removing packaged rw directories
[platform/core/appfw/app-installers.git] / src / common / step / mount / step_mount_install.cc
index 1aa4e48..a10d291 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <string>
 
+#include "common/shared_dirs.h"
 #include "common/utils/paths.h"
 #include "common/tzip_interface.h"
 #include "common/zip_interface.h"
@@ -17,6 +18,7 @@
 
 namespace bf = boost::filesystem;
 namespace bs = boost::system;
+namespace ci = common_installer;
 
 namespace common_installer {
 namespace mount {
@@ -43,6 +45,7 @@ Step::Status StepMountInstall::process() {
   if (!CopyFile(context_->file_path.get(), zip_destination_path)) {
     return Status::APP_DIR_ERROR;
   }
+  ci::RemoveRWDirectories(zip_destination_path);
   context_->manifest_data.get()->zip_mount_file =
       strdup(zip_destination_path.c_str());