use exceptionless API
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Robin Müller 2023-04-11 15:23:44 +02:00
parent 1c0fbace4d
commit af9f346698
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -1891,6 +1891,7 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u
size_t size) {
using namespace std;
using namespace std::filesystem;
error_code e;
// At the very least, chip and copy ID need to be included in the command
if (size < 2) {
return HasActionsIF::INVALID_PARAMETERS;
@ -2020,8 +2021,8 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u
cmd.clear();
// Remove the extracted files to keep directories clean.
std::filesystem::remove(strippedImagePath);
std::filesystem::remove(obswVersionFilePath);
std::filesystem::remove(strippedImagePath, e);
std::filesystem::remove(obswVersionFilePath, e);
// TODO: This takes a long time and will block the core controller.. Maybe use command executor?
// For now dont care..