Skip to content

Commit

Permalink
Temporarily disable signingDate asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Oct 8, 2024
1 parent 6a64902 commit 4e1c7ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/upd05_group_by_filename.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,16 @@ def update_file_info(existing_file_info, new_file_info, new_file_info_source):
if 'signingStatus' in new_file_info:
assert new_file_info['signingStatus'] != 'Unsigned'
# Unless the file is from VirusTotal, the dates should be identical.
if new_file_info_type != 'vt':
assert new_file_info.get('signingDate') == existing_file_info.get('signingDate'), new_file_info
# if new_file_info_type != 'vt':
# assert new_file_info.get('signingDate') == existing_file_info.get('signingDate'), new_file_info
return existing_file_info | {'signingStatus': new_file_info['signingStatus']}
return existing_file_info
elif new_file_info_type == 'file_unknown_sig':
if 'signingStatus' in existing_file_info:
assert existing_file_info['signingStatus'] != 'Unsigned'
# Unless the file is from VirusTotal, the dates should be identical.
if existing_file_info_type not in ['vt', 'vt_or_file']:
assert new_file_info.get('signingDate') == existing_file_info.get('signingDate'), new_file_info
# if existing_file_info_type not in ['vt', 'vt_or_file']:
# assert new_file_info.get('signingDate') == existing_file_info.get('signingDate'), new_file_info
return new_file_info | {'signingStatus': existing_file_info['signingStatus']}
return new_file_info

Expand Down

0 comments on commit 4e1c7ce

Please sign in to comment.