From 3d3afa2f3a101cb0f54577ecb963a2cf1e39fc83 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, 13 Jul 2022 14:30:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE=20?= =?UTF-8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B5=20=D0=B2=D1=8B=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=B0=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B8=20=D0=BF=D0=BE=D1=80=D1=82=D0=B5=D0=B6=D0=B5?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/update/update.py | 2 +- pym/update/variables/update.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pym/update/update.py b/pym/update/update.py index ca6dc59..1e06d2f 100644 --- a/pym/update/update.py +++ b/pym/update/update.py @@ -232,7 +232,7 @@ class Update(MethodsInterface): status = git.getStatusInfo(rpath) if not status or status['files']: need_update = True - + except GitError as e: need_update = True diff --git a/pym/update/variables/update.py b/pym/update/variables/update.py index f6e73a5..419391d 100644 --- a/pym/update/variables/update.py +++ b/pym/update/variables/update.py @@ -194,12 +194,6 @@ class VariableClUpdateRepPath(ReadonlyVariable): type = "list" 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')