Skip to content
Snippets Groups Projects

package_release: refactoring

Merged Tim Jaacks requested to merge refactor-package-release into master
@@ -29,9 +29,9 @@ def generate_md5sums_file(input_files: list[str], output_file: str):
md5sums = {}
for f in input_files:
md5sums[os.path.basename(f)] = md5(f)
dir = os.path.dirname(output_file)
if dir:
os.makedirs(dir, exist_ok=True)
output_dir = os.path.dirname(output_file)
if output_dir:
os.makedirs(output_dir, exist_ok=True)
with open(output_file, "w", encoding="utf-8") as f_md5:
for f, h in md5sums.items():
f_md5.write("{} {}\n".format(h, f))
Loading