Gilles Peskine eca29e4148 Replace the output file atomically
When writing the new .data file, first write the new content, then replace
the target. This way, there isn't a temporary state in which the file is
partially written. This temporary state can be misleading if the build is
interrupted. It's annoying if you're watching changes to the output and the
changes appear as emptying the file following by the new version appearing.
Now interrupted builds don't leave a file that appears to be up to date but
isn't, and when watching the output, there's a single transition to the new
version.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-10-04 15:22:27 +02:00
..
asymmetric_key_data.py Add key material for twisted Edwards curves 2021-03-29 15:08:10 +02:00
c_build_helper.py Minor documentation fixes 2021-01-19 21:23:11 +01:00
crypto_knowledge.py Rename and document mac_or_tag_lengths -> permitted_truncations 2022-04-20 20:58:04 +02:00
macro_collector.py Fix invalid argument enumeration when there are >=3 arguments 2022-04-15 16:15:48 +02:00
psa_storage.py Add warnings to test code and data about storage format stability 2022-06-30 13:57:27 +02:00
test_case.py Replace the output file atomically 2022-10-04 15:22:27 +02:00
typing_util.py Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00