Skip to content

Commit

Permalink
Temp exception for incorrect VirusTotal data
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Oct 9, 2024
1 parent 736f734 commit 6845d9a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion data/upd05_group_by_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,19 @@ def canonical_file_info(file_info):
file_info_1 = canonical_file_info(file_info_1)
file_info_2 = canonical_file_info(file_info_2)

assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)
# assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)

# temp {
if file_info_1.keys() - {'signingDate'} != file_info_2.keys() - {'signingDate'}:
if file_info_1['sha256'] not in [
# edgehtml.dll
'0cb8e9df274c7edc3c4997fdd4110d6f73221f32d479af8648b54e90a294ebae',
'51fce1826feddcfedface5ef71a9396b781083c7752b4ff77c3b549aad0917f6',
]:
assert file_info_1.keys() - {'signingDate'} == file_info_2.keys() - {'signingDate'}, (file_info_1, file_info_2)
else:
assert file_info_1.keys() - {'signingDate', 'version', 'description'} == file_info_2.keys() - {'signingDate', 'version', 'description'}, (file_info_1, file_info_2)
# }

for key in file_info_1.keys() - {'signingStatus', 'signingDate'}:
assert file_info_1[key] == file_info_2[key], (file_info_1, file_info_2)
Expand Down

0 comments on commit 6845d9a

Please sign in to comment.