fix
This commit is contained in:
@ -92,7 +92,7 @@ E_SIMPLE1(item_timeout, trace, true,
|
|||||||
std::string, api_path, ap, E_FROM_STRING
|
std::string, api_path, ap, E_FROM_STRING
|
||||||
);
|
);
|
||||||
|
|
||||||
E_SIMPLE3(download_type_selected, info, true,
|
E_SIMPLE3(download_type_selected, debug, true,
|
||||||
std::string, api_path, ap, E_FROM_STRING,
|
std::string, api_path, ap, E_FROM_STRING,
|
||||||
std::string, source, src, E_FROM_STRING,
|
std::string, source, src, E_FROM_STRING,
|
||||||
download_type, download_type, type, E_FROM_DOWNLOAD_TYPE
|
download_type, download_type, type, E_FROM_DOWNLOAD_TYPE
|
||||||
|
@ -605,6 +605,7 @@ auto file_manager::remove_source_and_shrink_cache(
|
|||||||
REPERTORY_USES_FUNCTION_NAME();
|
REPERTORY_USES_FUNCTION_NAME();
|
||||||
|
|
||||||
auto file = utils::file::file{source_path};
|
auto file = utils::file::file{source_path};
|
||||||
|
auto source_size = file.size().value_or(0U);
|
||||||
|
|
||||||
if (not file.remove()) {
|
if (not file.remove()) {
|
||||||
utils::error::raise_api_path_error(function_name, api_path, source_path,
|
utils::error::raise_api_path_error(function_name, api_path, source_path,
|
||||||
@ -613,7 +614,6 @@ auto file_manager::remove_source_and_shrink_cache(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto source_size = file.size().value_or(0U);
|
|
||||||
if (not allocated || source_size == 0U) {
|
if (not allocated || source_size == 0U) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user