Merge pull request #102 from FafnerKeyZee/patch-4

Generating correct hashes
pull/104/head
Raphaël Vinot 2020-10-13 16:30:46 +02:00 committed by GitHub
commit 58d820b7c5
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,7 +17,8 @@ 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):