Custom OBSW update path #582
@@ -16,6 +16,13 @@ will consitute of a breaking change warranting a new major release:
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
|
||||||
|
- Allow specifying custom OBSW update filename. This allowed keeping a cleaner file structure
|
||||||
|
where each update has a name including the version
|
||||||
|
- The files extracted during an update process are deleted after the update was performed to keep
|
||||||
|
the update directory cleaner.
|
||||||
|
|
||||||
# [v1.44.0] 2023-04-07
|
# [v1.44.0] 2023-04-07
|
||||||
|
|
||||||
- eive-tmtc: v2.22.0
|
- eive-tmtc: v2.22.0
|
||||||
|
@@ -2017,6 +2017,10 @@ ReturnValue_t CoreController::executeSwUpdate(SwUpdateSources sourceDir, const u
|
|||||||
cmd.str("");
|
cmd.str("");
|
||||||
cmd.clear();
|
cmd.clear();
|
||||||
|
|
||||||
|
// Remove the extracted files to keep directories clean.
|
||||||
|
std::filesystem::remove(strippedImagePath);
|
||||||
|
std::filesystem::remove(obswVersionFilePath);
|
||||||
|
|
||||||
|
|||||||
// TODO: This takes a long time and will block the core controller.. Maybe use command executor?
|
// TODO: This takes a long time and will block the core controller.. Maybe use command executor?
|
||||||
meggert
commented
use use `bool remove( const std::filesystem::path& p, std::error_code& ec ) noexcept;` instead
|
|||||||
// For now dont care..
|
// For now dont care..
|
||||||
cmd << "writeprotect " << std::to_string(data[0]) << " " << std::to_string(data[1]) << " 1";
|
cmd << "writeprotect " << std::to_string(data[0]) << " " << std::to_string(data[1]) << " 1";
|
||||||
|
2
tmtc
2
tmtc
Submodule tmtc updated: 9edbdf1a8d...92ce64cd39
Reference in New Issue
Block a user
use
bool remove( const std::filesystem::path& p, std::error_code& ec ) noexcept;
instead