Skip to content

Conversation

@keszybz
Copy link
Contributor

@keszybz keszybz commented Apr 14, 2025

No description provided.

keszybz added 3 commits April 14, 2025 09:21
This way, the order of items in a given section is properly alphabetical
and does not depend on the order in which the fields were added.
Previously, if the generation of the ini text failed, we would end up with an
empty or truncated file. This is not very likely to happen during normal use,
but when developing the previous patch, we hit it many times. This file is very
precious, so let's make an effort to avoid that.

We now generate the contents first, and then write them using
Path.write_text(). This is not atomic, but much less likely to fail halfway.
@keszybz keszybz requested a review from otizonaizit April 14, 2025 07:24
@otizonaizit otizonaizit merged commit 54e64cf into ASPP:main Apr 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants