projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868d86c
)
Use write_atomic() for manifest updates.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 28 Apr 2008 02:34:27 +0000
(
02:34
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 28 Apr 2008 02:34:27 +0000
(
02:34
-0000)
svn path=/main/trunk/; revision=10016
pym/portage/manifest.py
patch
|
blob
|
history
diff --git
a/pym/portage/manifest.py
b/pym/portage/manifest.py
index 910c03d18ddd706bd026207a87be17ea33361118..9c8ab371a224984fff6c35adcd820fc7c2cbf499 100644
(file)
--- a/
pym/portage/manifest.py
+++ b/
pym/portage/manifest.py
@@
-222,10
+222,8
@@
class Manifest(object):
else:
raise
if update_manifest:
- fd = open(self.getFullname(), "w")
- for myentry in myentries:
- fd.write("%s\n" % str(myentry))
- fd.close()
+ write_atomic(self.getFullname(),
+ "".join("%s\n" % str(myentry) for myentry in myentries))
if sign:
self.sign()
except (IOError, OSError), e: