From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DF4081384B4 for ; Tue, 24 Nov 2015 02:46:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8E461E089F; Tue, 24 Nov 2015 02:46:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2EB04E089F for ; Tue, 24 Nov 2015 02:46:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0CE1D340817 for ; Tue, 24 Nov 2015 02:46:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 601A3A95 for ; Tue, 24 Nov 2015 02:46:01 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <1448333008.628aa100a480dfcb5fe0edeb1fcd6ea6f4b933a2.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/sync/modules/cvs/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/sync/modules/cvs/__init__.py X-VCS-Directories: pym/portage/sync/modules/cvs/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: 628aa100a480dfcb5fe0edeb1fcd6ea6f4b933a2 X-VCS-Branch: master Date: Tue, 24 Nov 2015 02:46:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9fa57e91-1d6a-45e3-b2c3-db0b8e15acb5 X-Archives-Hash: 33cad8d500749c772476b1016a22807c commit: 628aa100a480dfcb5fe0edeb1fcd6ea6f4b933a2 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Tue Nov 24 02:43:28 2015 +0000 Commit: Arfrever Frehtes Taifersar Arahesis apache org> CommitDate: Tue Nov 24 02:43:28 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=628aa100 portage.sync.modules.cvs.CheckCVSConfig.check_cvs_repo(): Fix "KeyError: 'sync-cvs-repo'". pym/portage/sync/modules/cvs/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/sync/modules/cvs/__init__.py b/pym/portage/sync/modules/cvs/__init__.py index 952053a..0cf6067 100644 --- a/pym/portage/sync/modules/cvs/__init__.py +++ b/pym/portage/sync/modules/cvs/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2014 Gentoo Foundation +# Copyright 2014-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 doc = """CVS plug-in module for portage. @@ -18,7 +18,7 @@ class CheckCVSConfig(CheckSyncConfig): def check_cvs_repo(self): - if self.repo.module_specific_options['sync-cvs-repo'] is None: + if self.repo.module_specific_options.get('sync-cvs-repo') is None: writemsg_level("!!! %s\n" % _("Repository '%s' has sync-type=cvs, but is missing sync-cvs-repo attribute") % self.repo.name, level=self.logger.ERROR, noiselevel=-1)