Skip to content

Commit

Permalink
accept uppercase md5 hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Miller committed Jun 1, 2023
1 parent 1323bc4 commit dfd4b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def copy_file(self, file_info, overwrite, dryrun, verify_md5=False):
self.log.info(f'Downloading file and verifying MD5 locally...')
local_file = f'tmp/{file_name}'
local_md5 = _get_org_md5(org_url, local_file)
if local_md5 != org_md5:
if local_md5.lower() != org_md5.lower():
self.log.error(f'MD5 verify failed! Original MD5: {org_md5}, local MD5: {local_md5}')
return {self.STATUS: False}
self.log.info(f'MD5 verified!')
Expand Down

0 comments on commit dfd4b85

Please sign in to comment.