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<const wgt::parse::TizenApplicationInfo>(
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;
}