From f4c2733cf6cb9d9cb5c8b91eb67c1d53e1a9a8b4 Mon Sep 17 00:00:00 2001 From: Esko Kokkonen Date: Mon, 29 Aug 2011 18:04:25 +0300 Subject: [PATCH] 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. --- emerge-timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.44.0