diff options
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pym/portage.py b/pym/portage.py index 339cd2e42..dd7775a5d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4142,12 +4142,7 @@ class dbapi: #increment counter counter += 1 # update new global counter file - newcpath=cpath+".new" - newcfile=open(newcpath,"w") - newcfile.write(str(counter)) - newcfile.close() - # now move global counter file into place - os.rename(newcpath,cpath) + write_atomic(cpath, str(counter)) return counter def invalidentry(self, mypath): |