]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Reset the times -list in the beginning of the main_loop function.
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 20 Aug 2011 08:30:23 +0000 (11:30 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 20 Aug 2011 08:30:23 +0000 (11:30 +0300)
If this list is not emptied, it would have kept adding emerge times
into it, even if the times would belong to another package.

emerge-timer.py

index a4ed730975de57d304d751ac2fe77e5a8e00f8b4..b32a1da1cc71dfb676a69b742d60b107dd875a37 100755 (executable)
@@ -352,7 +352,7 @@ def main_loop(f, package, silent):
     """The main loop which parses the LOGFILE and if needed prints out emerge times."""
 
     f.seek(0) # Seek to the beginning of the file
-
+    times = []
 
     # MAIN LOOP
     for line in f: