updater: do not continue if file extraction failed
Signed-off-by: tretrauit <tretrauit@gmail.com>
This commit is contained in:
parent
e55d6cafd6
commit
95f21e6d2a
@ -368,7 +368,8 @@ class Installer:
|
||||
print(diff_file)
|
||||
await asyncio.to_thread(archive.extract, diff_file, self.temp_path)
|
||||
except FileExistsError:
|
||||
pass
|
||||
print("Failed to extract diff file", diff_file)
|
||||
return
|
||||
patch_path = self.temp_path.joinpath(diff_file)
|
||||
old_suffix = old_file.suffix
|
||||
old_file = await old_file.rename(old_file.with_suffix(".bak"))
|
||||
|
Loading…
Reference in New Issue
Block a user