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/emaint
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/emaint')
-rwxr-xr-xbin/emaint2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emaint b/bin/emaint
index 6f9977de..e6d11fc1 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -40,7 +40,7 @@ class WorldHandler(object):
def fix(self):
errors = []
try:
- open(portage_const.WORLD_FILE, "w").write("\n".join(self.okay))
+ portage.write_atomic(portage_const.WORLD_FILE,"\n".join(self.okay))
except OSError:
errors.append(portage_const.WORLD_FILE + " could not be opened for writing")
return errors