Because MountInstall is performed when there is no manifest
a file may exist in the extract entry path, so remove that
Related:
[app-installers]https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/281054/
Change-Id: I26e93e345779df832b421758f99d9600aa5bde3a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
}
for (auto& entry : GetExtractEntries()) {
- if (context_->request_type.get() == ci::RequestType::MountUpdate)
+ if (context_->request_type.get() == ci::RequestType::MountInstall) {
+ ci::RemoveAll(resource_path / entry);
+ } else if (context_->request_type.get() == ci::RequestType::MountUpdate) {
if (!ci::BackupDir(resource_path, backup_path, entry))
return Status::APP_DIR_ERROR;
+ }
if (!ci::ExtractToTmpDir(context_->file_path.get().c_str(),
resource_path.c_str(), entry)) {