Browse Source

Исправлена проверка запущенного emerge

tags/3.6.7.2
parent
commit
79bc71f3b6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pym/update/update.py

+ 2
- 1
pym/update/update.py View File

@@ -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:


Loading…
Cancel
Save