]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Search ps with "ebuild.sh" instaed of "ebuild"
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 15:04:25 +0000 (18:04 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Mon, 29 Aug 2011 15:04:25 +0000 (18:04 +0300)
"ebuild" can match processes that don't handle the current emerge and
thus wont contain the package name.

emerge-timer.py

index 618f8593fb5c67c4ff8c01ce6106a91d20fcda64..c2ef4447621d928894cdec09e66cc882c1611aab 100755 (executable)
@@ -247,7 +247,7 @@ def list_emerge_processes(f):
     packages = []
 
     for i in os.popen("ps ax"):
     packages = []
 
     for i in os.popen("ps ax"):
-        if (("ebuild" in i) and ("/bin/bash" not in i)):
+        if (("ebuild.sh" in i) and ("/bin/bash" not in i)):
              pack = i.partition('[')[2].partition(']')[0]
 
              packages.append([pack, 12*3600])
              pack = i.partition('[')[2].partition(']')[0]
 
              packages.append([pack, 12*3600])