commit:     628aa100a480dfcb5fe0edeb1fcd6ea6f4b933a2
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Tue Nov 24 02:43:28 2015 +0000
Commit:     Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> 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)

Reply via email to