]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Remove the maximum emerge time restriction
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 14 Aug 2011 14:42:00 +0000 (17:42 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 14 Aug 2011 14:42:38 +0000 (17:42 +0300)
This is no longer needed when we see the current package from
the emerge process

emerge-timer.py

index 29f9d74087538b9b1cac7ca5a13e53e2b6acd098..ec2075a74706d02bb632a979d0a74953dc3fbc89 100755 (executable)
@@ -265,21 +265,22 @@ def list_emerge_processes(f):
         difference = now - timestamp
 
 
-        if difference.total_seconds() < 12*60*60:
-            if a:
-                print("Currently emerging: ")
-                a = 0
+        if a:
+            print("Currently emerging: ")
+            a = 0
 
-            print("\t" + green_start + p[0] + color_stop),
-            print('\n\t  current emerge time: '),
+        print("\t" + green_start + p[0] + color_stop),
+        print('\n\t  current emerge time: '),
 
-            organize_times(difference.total_seconds())
-            print
+        organize_times(difference.total_seconds())
+        print
+
+
+        name = (p[0].partition('-')[0] + '-' +
+                p[0].partition('-')[2].partition('-')[0])
+        main_loop(f, name, True)
 
 
-            name = (p[0].partition('-')[0] + '-' +
-                    p[0].partition('-')[2].partition('-')[0])
-            main_loop(f, name, True)