]> git.lizzy.rs Git - rust.git/commit
bootstrap: write texts to a .tmp file first for atomicity
authorNODA, Kai <nodakai@gmail.com>
Sat, 23 Jun 2018 08:51:19 +0000 (16:51 +0800)
committerNODA, Kai <nodakai@gmail.com>
Tue, 10 Jul 2018 14:50:00 +0000 (22:50 +0800)
commitbcb8a06ef7929417f09ed5055692d8afc59b3c70
tree58d2336c97597b5fdd006352e076f6e0aa7932fb
parentfc491526dd0b5d8c8c25faa6400599e08ede1907
bootstrap: write texts to a .tmp file first for atomicity

If you are using a hard-linked file as your config.toml, this change will affect the way other instances of the file is modified.
The original version would modify all other instances whereas the new version will leave others unchanged, reducing the ref count by one.

Signed-off-by: NODA, Kai <nodakai@gmail.com>
src/bootstrap/bootstrap.py
src/bootstrap/configure.py