projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cea761
)
Use write_atomic for dblink metadata updates.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 9 Jul 2006 20:34:55 +0000
(20:34 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 9 Jul 2006 20:34:55 +0000
(20:34 -0000)
svn path=/main/trunk/; revision=3824
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 80358d4ed4fa358b0e8fa76a83cacaa64d912eff..1372ecb4ec84d7f6174c04d2c6ad531abf33bdbc 100644
(file)
--- a/
pym/portage.py
+++ b/
pym/portage.py
@@
-6737,9
+6737,7
@@
class dblink:
return mydata
def setfile(self,fname,data):
- myfile=open(self.dbdir+"/"+fname,"w")
- myfile.write(data)
- myfile.close()
+ write_atomic(os.path.join(self.dbdir, fname), data)
def getelements(self,ename):
if not os.path.exists(self.dbdir+"/"+ename):