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 d7a7a98
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion data/upd05_group_by_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,25 @@ 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',

# cortana.donotdisturb.dll
'60527081581ab46e79a018c4c221deecb155da644149cb33e6b84708ddad4762',

# mixedrealitycapture.pipeline.dll
'8a17d8ddc645a1caf7db31549c6e3c32ff617f6f46f1ea7cc161756800256e4b',
]:
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 d7a7a98

Please sign in to comment.