From fdf36da21d72d06bf486f7acab7c8d658984b025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=98=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 27 Jul 2022 17:42:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B2=20=D0=B8=D1=81=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B8:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * "acct-user", "acct-group" и "virtual" --- pym/core/variables/setup_package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/core/variables/setup_package.py b/pym/core/variables/setup_package.py index 05149ee..01a3668 100644 --- a/pym/core/variables/setup_package.py +++ b/pym/core/variables/setup_package.py @@ -284,7 +284,12 @@ class VariableClCorePkgCategory(Variable): if type(category[0]) == dict: category = "" else: - category = category[0].rpartition('/')[2] + if len(category) > 1: + for x in category: + if not "acct-user" in x and not "acct-group" in x and not "virtual" in x: + category = x.rpartition('/')[2] + else: + category = category[0].rpartition('/')[2] else: choice = self.choice() if len(choice) == 1: