Skip to content

Commit

Permalink
digest printing additional details
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalinowski-reef committed Jan 12, 2023
1 parent ad5cdca commit 0b61af3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0b61af3

Please sign in to comment.