diff options
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py index 80358d4ed..1372ecb4e 100644 --- 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): |