From bdc5babbe464e5280833b9b163551bba366dfc74 Mon Sep 17 00:00:00 2001 From: Pradish Bijukchhe Date: Tue, 12 Dec 2023 22:47:14 +0545 Subject: [PATCH] fix!: bugfix running processes detection --- pkg_updater/updater.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg_updater/updater.py b/pkg_updater/updater.py index 2126cb8..d2e02d6 100644 --- a/pkg_updater/updater.py +++ b/pkg_updater/updater.py @@ -42,7 +42,7 @@ def get_running_processes(name: str, cmdline: str): i_cmdline = " ".join(i.cmdline()) if "--restart" in i_cmdline: # filter self - break + continue if name in i.name() and cmdline in i_cmdline: processes.append(i) except psutil.Error: diff --git a/pyproject.toml b/pyproject.toml index 5365d56..597bd6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pkg-updater" -version = "1.0.1" +version = "1.0.2" dependencies = ["psutil"] requires-python = ">=3" authors = [{ name = "Pradish Bijukchhe", email = "pradishbijukchhe@gmail.com" }]