Overwrite the existing fetch log so that it only contains the most recent fetch.
authorZac Medico <zmedico@gentoo.org>
Sun, 18 Jun 2006 00:43:28 +0000 (00:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 18 Jun 2006 00:43:28 +0000 (00:43 -0000)
svn path=/main/trunk/; revision=3526

bin/emerge

index cb66603fe010ae2a2d1f7123007726eb808a8877..8cd9f367640f7a5da30153d4503cf5111c5860d9 100755 (executable)
@@ -1937,7 +1937,7 @@ class depgraph:
                                        sys.stderr.close()
                                        time.sleep(3) # allow the parent to have first fetch
                                        fetchlog = "/var/log/emerge-fetch.log"
-                                       sys.stdout = open(fetchlog, "a")
+                                       sys.stdout = open(fetchlog, "w")
                                        sys.stderr = sys.stdout
                                        os.dup2(sys.stdout.fileno(), 1)
                                        os.dup2(sys.stderr.fileno(), 2)