From: Esko Kokkonen Date: Mon, 29 Aug 2011 15:04:25 +0000 (+0300) Subject: Search ps with "ebuild.sh" instaed of "ebuild" X-Git-Url: http://git.itanic.dy.fi/?p=emerge-timer;a=commitdiff_plain;h=f4c2733cf6cb9d9cb5c8b91eb67c1d53e1a9a8b4 Search ps with "ebuild.sh" instaed of "ebuild" "ebuild" can match processes that don't handle the current emerge and thus wont contain the package name. --- diff --git a/emerge-timer.py b/emerge-timer.py index 618f859..c2ef444 100755 --- a/emerge-timer.py +++ b/emerge-timer.py @@ -247,7 +247,7 @@ def list_emerge_processes(f): 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])