1
0
mirror of https://github.com/jordansissel/fpm synced 2025-04-29 14:58:00 +02:00

Close the file to make Python flush any pending writes. Without this, some versions of python will /not/ write anything to our file which makes it empty and causes a failure in fpm.

This commit is contained in:
Jordan Sissel 2022-11-27 14:55:23 -08:00 committed by Jordan Sissel
parent df26ed08f7
commit dcbe0425db

@ -112,3 +112,4 @@ class get_metadata(Command):
else:
# For Python 2.5 and Debian's python-json
output.write(json.write(data))
output.close()