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:
parent
85d51bfd9a
commit
1a8eefe09b
@ -1343,7 +1343,7 @@ def _build_tarball_in_stage_dir(
|
|||||||
spec_dict["buildinfo"] = buildinfo
|
spec_dict["buildinfo"] = buildinfo
|
||||||
|
|
||||||
with open(specfile_path, "w") as outfile:
|
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
|
# sign the tarball and spec file with gpg
|
||||||
if not unsigned:
|
if not unsigned:
|
||||||
|
Loading…
Reference in New Issue
Block a user