fix(idf_tools): fix delimiter when the updater parsing, ' *' or ' '

This commit is contained in:
Anton Maklakov 2024-01-10 20:18:03 +07:00
parent 49773c662a
commit 2456dc6a8e

View File

@ -2372,7 +2372,7 @@ class ChecksumFileParser():
try: try:
for bytes_str, hash_str in zip(self.checksum[0::2], self.checksum[1::2]): for bytes_str, hash_str in zip(self.checksum[0::2], self.checksum[1::2]):
bytes_filename = self.parseLine(r'^# (\S*):', bytes_str) bytes_filename = self.parseLine(r'^# (\S*):', bytes_str)
hash_filename = self.parseLine(r'^\S* \*(\S*)', hash_str) hash_filename = self.parseLine(r'^\S* [\* ](\S*)', hash_str)
if hash_filename != bytes_filename: if hash_filename != bytes_filename:
fatal('filename in hash-line and in bytes-line are not the same') fatal('filename in hash-line and in bytes-line are not the same')
raise SystemExit(1) raise SystemExit(1)