From 15b833a22a85b482b369b8cf930dd96fd17150b7 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: Tue, 12 Jul 2022 11:51:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=83=D1=82=D1=8C=20=D0=BA=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=80=D1=82=D0=B5=D0=B6=D0=B0=D0=BC=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=83=D0=BC=D0=BE=D0=BB=D1=87=D0=B0=D0=BD=D0=B8=D1=8E=20-=20/u?= =?UTF-8?q?sr/portage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * По умолчанию указан путь /usr/portage. * Исправлено автоматическое создание директории /var/db/repos/gentoo. --- pym/update/variables/update.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index 3885e04..f6e73a5 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -192,12 +192,14 @@ class VariableClUpdateRepPath(ReadonlyVariable): Пути до репозиториев """ type = "list" - if os.path.isdir('/var/db/repos/gentoo'): - mapPath = {'portage': 'var/db/repos/gentoo', - 'gentoo': 'var/db/repos/gentoo'} - else: - mapPath = {'portage': 'usr/portage', - 'gentoo': 'usr/portage'} + mapPath = {'portage': 'usr/portage', + 'gentoo': 'usr/portage'} + #if os.path.isdir('/var/db/repos/gentoo'): + # mapPath = {'portage': 'var/db/repos/gentoo', + # 'gentoo': 'var/db/repos/gentoo'} + #else: + # mapPath = {'portage': 'usr/portage', + # 'gentoo': 'usr/portage'} def get(self): repPath = self.Get('cl_update_repos_storage')