Fix firmware updating/reinstallation

This commit is contained in:
Eladash
2021-02-08 18:57:37 +02:00
committed by Megamouse
parent dc2a1e270a
commit e38cd5149a
2 changed files with 7 additions and 10 deletions
-10
View File
@@ -116,16 +116,6 @@ bool tar_object::extract(std::string path, std::string ignore)
{
auto data = get_file(header.name).release();
if (fs::file prev{result})
{
if (prev.to_vector<u8>() == static_cast<fs::container_stream<std::vector<u8>>*>(data.get())->obj)
{
// Workaround: avoid overwriting existing data if it's the same.
tar_log.notice("TAR Loader: skipped existing file %s", header.name);
break;
}
}
fs::file file(result, fs::rewrite);
if (file)