minify spec.json in buildcache (#36138)

saves about 50% of data, which is significant
for hundreds of thousands of spec.json files
in our buildcaches.
This commit is contained in:
Harmen Stoppels 2023-03-15 21:54:03 +01:00 committed by GitHub
parent 85d51bfd9a
commit 1a8eefe09b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1343,7 +1343,7 @@ def _build_tarball_in_stage_dir(
spec_dict["buildinfo"] = buildinfo
with open(specfile_path, "w") as outfile:
outfile.write(sjson.dump(spec_dict))
outfile.write(json.dumps(spec_dict))
# sign the tarball and spec file with gpg
if not unsigned: