diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index a3bc846..a002fc6 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -172,7 +172,7 @@ def main(): for fname, diff in zip(patch_files, diffs): if fname and diff: print(f"# {fname}") - print("\n".join(diff)) + print("\n".join(diff) + "\n") else: with open(spec_file, "w") as fobj: fobj.write(spec_contents) @@ -180,7 +180,7 @@ def main(): for fname, diff in zip(patch_files, diffs): if fname and diff: with open(fname, "w") as fobj: - fobj.write("\n".join(diff)) + fobj.write("\n".join(diff) + "\n") log.success(f"Generated: {fobj.name}")