From 0b61af3f96ebe869743a94f58a67573541c72347 Mon Sep 17 00:00:00 2001 From: Krzysztof Kalinowski Date: Thu, 12 Jan 2023 11:01:23 +0100 Subject: [PATCH] digest printing additional details --- noxfile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index bed2c4aa5..b2dd47bc8 100644 --- a/noxfile.py +++ b/noxfile.py @@ -377,10 +377,11 @@ def make_dist_digest(_session): hash_value = hashlib.new(algo, data).hexdigest() output_lines.append(line_format.format(algo=algo, hash_value=hash_value)) - dist_file.with_stem(dist_file.name + hashes_file_suffix).with_suffix('.txt').write_text( - '\n'.join(output_lines) - ) + hashes_output_file = \ + dist_file.with_stem(dist_file.name + hashes_file_suffix).with_suffix('.txt') + hashes_output_file.write_text('\n'.join(output_lines)) did_find_any_file = True + print(dist_file, hashes_output_file) if not did_find_any_file: raise RuntimeError(