From 1f9a8581287b59a6441e1578afc0939364c4c29b Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Fri, 18 Sep 2020 14:05:40 +0900 Subject: [PATCH] Change WgtAppQueryInterface's logic of clearing tmp path Extracting function can be override by child class, So the clearing function should be overridable function - Requires: [app-installers] https://review.tizen.org/gerrit/#/c/platform/core/appfw/app-installers/+/244388/ Change-Id: I45542eeaee653912cc1661fd6a0511a87ce7d020 Signed-off-by: Ilho Kim --- src/wgt/utils/wgt_app_query_interface.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wgt/utils/wgt_app_query_interface.cc b/src/wgt/utils/wgt_app_query_interface.cc index d785f90..3c6772f 100644 --- a/src/wgt/utils/wgt_app_query_interface.cc +++ b/src/wgt/utils/wgt_app_query_interface.cc @@ -71,7 +71,7 @@ std::string WgtAppQueryInterface::GetPkgIdFromPath( new parser::ManifestParser(std::move(registry))); bf::path config_path = tmp_path / GetManifestFileName(); if (!parser->ParseManifest(config_path)) { - ci::RemoveAll(tmp_path); + ClearTemporaryFile(tmp_path); return {}; } auto info = std::static_pointer_cast( @@ -83,12 +83,12 @@ std::string WgtAppQueryInterface::GetPkgIdFromPath( wgt::application_widget_keys::kTizenAddonKey)); if (!info && !info_addon) { - ci::RemoveAll(tmp_path); + ClearTemporaryFile(tmp_path); return {}; } std::string pkg_id = !info ? info_addon->package() : info->package(); - ci::RemoveAll(tmp_path); + ClearTemporaryFile(tmp_path); return pkg_id; } -- 2.7.4