mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge pull request #42739 from Matan-B/lua-install-packages-fix
rgw: fix install packages function
This commit is contained in:
commit
e31783c680
@ -198,7 +198,8 @@ int install_packages(const DoutPrefixProvider *dpp, rgw::sal::Store* store, opti
|
|||||||
// luarocks directory cleanup
|
// luarocks directory cleanup
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
const auto& luarocks_path = store->get_luarocks_path();
|
const auto& luarocks_path = store->get_luarocks_path();
|
||||||
if (!std::filesystem::remove_all(luarocks_path, ec) &&
|
if (std::filesystem::remove_all(luarocks_path, ec)
|
||||||
|
== static_cast<std::uintmax_t>(-1) &&
|
||||||
ec != std::errc::no_such_file_or_directory) {
|
ec != std::errc::no_such_file_or_directory) {
|
||||||
output.append("failed to clear luarock directory: ");
|
output.append("failed to clear luarock directory: ");
|
||||||
output.append(ec.message());
|
output.append(ec.message());
|
||||||
|
Loading…
Reference in New Issue
Block a user