edgehog-device-manager / edgehog-device-runtime

Edgehog Device Runtime is a portable middleware written in Rust, that enables remote device management on Linux-based systems.
Apache License 2.0
12 stars 11 forks source link

Remove update file after installation #168

Closed FrancescoVaiani closed 1 year ago

FrancescoVaiani commented 2 years ago

The OTA update file is left on the disk after the OTA update even if it is not needed anymore. In addition to removing the file after the installation, an additional check is performed on the eventually existing file before downloading.

Close #167

Signed-off-by: Francesco Vaiani francesco.vaiani@secomind.com

codecov[bot] commented 1 year ago

Codecov Report

Base: 69.70% // Head: 70.04% // Increases project coverage by +0.34% :tada:

Coverage data is based on head (a1269f2) compared to base (344360c). Patch coverage: 85.71% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #168 +/- ## ========================================== + Coverage 69.70% 70.04% +0.34% ========================================== Files 22 22 Lines 812 818 +6 ========================================== + Hits 566 573 +7 + Misses 246 245 -1 ``` | [Impacted Files](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/168?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager) | Coverage Δ | | |---|---|---| | [src/ota/ota\_handler.rs](https://codecov.io/gh/edgehog-device-manager/edgehog-device-runtime/pull/168?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager#diff-c3JjL290YS9vdGFfaGFuZGxlci5ycw==) | `85.82% <85.71%> (+1.52%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=edgehog-device-manager)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

FrancescoVaiani commented 1 year ago

⚠PR rebased on #188 for improved compatibility. Please merge after the SDK update.