1 |
commit: 628aa100a480dfcb5fe0edeb1fcd6ea6f4b933a2 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Tue Nov 24 02:43:28 2015 +0000 |
4 |
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org> |
5 |
CommitDate: Tue Nov 24 02:43:28 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=628aa100 |
7 |
|
8 |
portage.sync.modules.cvs.CheckCVSConfig.check_cvs_repo(): Fix "KeyError: 'sync-cvs-repo'". |
9 |
|
10 |
pym/portage/sync/modules/cvs/__init__.py | 4 ++-- |
11 |
1 file changed, 2 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/pym/portage/sync/modules/cvs/__init__.py b/pym/portage/sync/modules/cvs/__init__.py |
14 |
index 952053a..0cf6067 100644 |
15 |
--- a/pym/portage/sync/modules/cvs/__init__.py |
16 |
+++ b/pym/portage/sync/modules/cvs/__init__.py |
17 |
@@ -1,4 +1,4 @@ |
18 |
-# Copyright 2014 Gentoo Foundation |
19 |
+# Copyright 2014-2015 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
doc = """CVS plug-in module for portage. |
23 |
@@ -18,7 +18,7 @@ class CheckCVSConfig(CheckSyncConfig): |
24 |
|
25 |
|
26 |
def check_cvs_repo(self): |
27 |
- if self.repo.module_specific_options['sync-cvs-repo'] is None: |
28 |
+ if self.repo.module_specific_options.get('sync-cvs-repo') is None: |
29 |
writemsg_level("!!! %s\n" % |
30 |
_("Repository '%s' has sync-type=cvs, but is missing sync-cvs-repo attribute") |
31 |
% self.repo.name, level=self.logger.ERROR, noiselevel=-1) |