bug 114133, write a tmp file then rename it for write* funcs.
authorBrian Harring <ferringb@gentoo.org>
Sat, 24 Dec 2005 09:56:42 +0000 (09:56 -0000)
committerBrian Harring <ferringb@gentoo.org>
Sat, 24 Dec 2005 09:56:42 +0000 (09:56 -0000)
commit934ef15d2e0e1397ea0d4361991b1c90dcfc428d
tree172a2db2e7aac49f5c3971a2201be0119c914af7
parent29c01db1bce425531bd268d629c251e25d32ee51
bug 114133, write a tmp file then rename it for write* funcs.
This removes the possibility of out of space errors to occur, and blocks unexpected flat out bails (segfault fex) from hosing important files.

svn path=/main/trunk/; revision=2447
pym/portage_util.py