summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-09 01:10:08 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-09 01:10:08 +0000
commitcbc38717d510b106a27dabeec517111fcd54a5b0 (patch)
treeafcc0a31a47f6d1bff7a498cae929540559c7ce7 /bin/regenworld
parentadd new atomic_ofstream class for safer writes (diff)
downloadportage-multirepo-cbc38717d510b106a27dabeec517111fcd54a5b0.tar.gz
portage-multirepo-cbc38717d510b106a27dabeec517111fcd54a5b0.tar.bz2
portage-multirepo-cbc38717d510b106a27dabeec517111fcd54a5b0.zip
use new write_atomic() function for all world file updates
svn path=/main/trunk/; revision=2681
Diffstat (limited to 'bin/regenworld')
-rwxr-xr-xbin/regenworld4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/regenworld b/bin/regenworld
index 14ec51d5..8723d7f2 100755
--- a/bin/regenworld
+++ b/bin/regenworld
@@ -88,6 +88,4 @@ for mykey in biglist:
print "add to world:",myfavkey
worldlist.append(myfavkey)
-myfile=open(portage.WORLD_FILE, "w")
-myfile.write(string.join(worldlist, '\n')+'\n')
-myfile.close()
+portage.write_atomic(portage.WORLD_FILE,"\n".join(worldlist))