use exceptionless API
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
1c0fbace4d
commit
af9f346698
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user