1 |
Author: zmedico |
2 |
Date: 2008-04-28 02:34:44 +0000 (Mon, 28 Apr 2008) |
3 |
New Revision: 10017 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/pym/portage_manifest.py |
7 |
Log: |
8 |
Use write_atomic() for manifest updates. (trunk r10016) |
9 |
|
10 |
|
11 |
Modified: main/branches/2.1.2/pym/portage_manifest.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.2/pym/portage_manifest.py 2008-04-28 02:34:27 UTC (rev 10016) |
14 |
+++ main/branches/2.1.2/pym/portage_manifest.py 2008-04-28 02:34:44 UTC (rev 10017) |
15 |
@@ -385,10 +385,8 @@ |
16 |
else: |
17 |
raise |
18 |
if update_manifest: |
19 |
- fd = open(self.getFullname(), "w") |
20 |
- for myentry in myentries: |
21 |
- fd.write("%s\n" % str(myentry)) |
22 |
- fd.close() |
23 |
+ write_atomic(self.getFullname(), |
24 |
+ "".join("%s\n" % str(myentry) for myentry in myentries)) |
25 |
if sign: |
26 |
self.sign() |
27 |
except (IOError, OSError), e: |
28 |
|
29 |
-- |
30 |
gentoo-commits@l.g.o mailing list |