Print information about written files

We already output some messages, but not the most important part: what
files were written.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-02-28 10:32:10 +01:00
parent b9e95b4d61
commit 7d8c9a8028

View file

@ -515,10 +515,11 @@ def main():
with open(spec_file, "w") as fobj:
fobj.write(spec_contents)
fobj.write("\n")
print(f'Wrote {fobj.name}')
if patch_file is not None:
with open(patch_file, "w") as fobj:
fobj.writelines(diff)
print(f'Wrote {fobj.name}')
if __name__ == "__main__":
main()