From 81fb9db3cfd0e2da1619616307d42a18b0d4e475 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Tue, 13 Oct 2020 16:18:01 +0200 Subject: [PATCH] Generating correct hashes --- bin/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/update.py b/bin/update.py index ad7a3a5e..8c1feb4f 100755 --- a/bin/update.py +++ b/bin/update.py @@ -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