chore: fix missing \n at end of exported patches (#15579) (#15619)

(cherry picked from commit 2e1c50c891)
This commit is contained in:
Alexey Kuzmin
2018-11-07 16:26:29 +01:00
committed by John Kleinschmidt
parent fec42919ed
commit 915fc3d62d

View File

@@ -123,7 +123,7 @@ def main(argv):
for patch in patches:
filename = get_file_name(patch)
with open(os.path.join(out_dir, filename), 'w') as f:
f.write('\n'.join(remove_patch_filename(patch)))
f.write('\n'.join(remove_patch_filename(patch)).rstrip('\n') + '\n')
pl.write(filename + '\n')