From 79bc71f3b6359e9ed4f233abd2dc6846fa079505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 21 Jan 2020 17:57:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B7=D0=B0=D0=BF=D1=83=D1=89=D0=B5=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20emerge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/update/update.py b/pym/update/update.py index bf9704b..24a4249 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -42,6 +42,7 @@ import shutil from collections import MutableSet from contextlib import contextmanager import tempfile +from fnmatch import fnmatch from calculate.lib.utils.git import Git, GitError, MTimeKeeper, NotGitError from calculate.lib.utils.portage import (ReposConf, EmergeLog, @@ -317,7 +318,7 @@ class Update(MethodsInterface): self.endTask() if self.clVars.Get('cl_chroot_status') == 'off': - emerge_running = lambda: any("/usr/bin/emerge" in x + emerge_running = lambda: any(fnmatch(x, "*python-exec/*/emerge*") for x in getRunCommands(True)) if emerge_running(): if not wait_update: