mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-06 23:41:26 +01:00
Compare commits
2 Commits
b8f87469f3
...
520545b6de
Author | SHA1 | Date | |
---|---|---|---|
|
520545b6de | ||
|
6ea57a34ba |
|
@ -6,4 +6,4 @@ brotlicffi; implementation_name!='cpython'
|
||||||
certifi
|
certifi
|
||||||
requests>=2.31.0,<3
|
requests>=2.31.0,<3
|
||||||
urllib3>=1.26.17,<3
|
urllib3>=1.26.17,<3
|
||||||
secretstorage; sys_platform=='linux' and (implementation_name!='pypy' or python_version>='3.10')
|
secretstorage; sys_platform=='linux' and (implementation_name!='pypy' or implementation_version>='7.3.10')
|
||||||
|
|
|
@ -475,7 +475,9 @@ class Updater:
|
||||||
f'The requested tag {self.requested_repo}@{update_info.tag} does not exist', True)
|
f'The requested tag {self.requested_repo}@{update_info.tag} does not exist', True)
|
||||||
return self._report_network_error(f'fetch updates: {e}', tag=update_info.tag)
|
return self._report_network_error(f'fetch updates: {e}', tag=update_info.tag)
|
||||||
|
|
||||||
if hashlib.sha256(newcontent).hexdigest() != update_info.checksum:
|
if not update_info.checksum:
|
||||||
|
self._block_restart('Automatically restarting into unverified builds is disabled for security reasons')
|
||||||
|
elif hashlib.sha256(newcontent).hexdigest() != update_info.checksum:
|
||||||
return self._report_network_error('verify the new executable', tag=update_info.tag)
|
return self._report_network_error('verify the new executable', tag=update_info.tag)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user