perf: imporve ota building speed

This commit is contained in:
Horror Proton
2023-04-27 23:07:35 +08:00
parent 5c5d74018a
commit 3c4faef29f
7 changed files with 51 additions and 25 deletions

View File

@@ -201,9 +201,9 @@ class Updater:
f.close()
remove_with_print(removelist_path)
md5sum_path = os.path.join(self.path, 'md5sum.txt')
if os.path.isfile(md5sum_path):
remove_with_print(md5sum_path)
filelist_path = os.path.join(self.path, 'filelist.txt')
if os.path.isfile(filelist_path):
remove_with_print(filelist_path)
for file in os.listdir(self.path):
if 'OTA' in file:
file_path = os.path.join(self.path, file)