From cbc38717d510b106a27dabeec517111fcd54a5b0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 9 Feb 2006 01:10:08 +0000 Subject: use new write_atomic() function for all world file updates svn path=/main/trunk/; revision=2681 --- bin/regenworld | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/regenworld') diff --git a/bin/regenworld b/bin/regenworld index 14ec51d5c..8723d7f20 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)) -- cgit v1.2.3-1-g7c22