Generating correct hashes

pull/102/head
Fafner [_KeyZee_] 2020-10-13 16:18:01 +02:00 committed by GitHub
parent 93dac1f479
commit 81fb9db3cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -17,9 +17,10 @@ logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
def compute_hash_self():
m = hashlib.sha256()
with (get_homedir() / 'bin' / 'update.py').open('rb') as f:
return m.update(f.read())
m.update(f.read())
return m.digest()
def keep_going(ignore=False):
if ignore:
return