commit:     90570e44ca0c6e69ce59c7b0ad4c210adce82409
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 20 14:22:37 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Sep  5 20:26:12 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=90570e44

modules/*/__init__.py: rename module1 keys

Add aditional info to the func_parameters dictionary.

---
 pym/portage/sync/modules/cvs/__init__.py     | 4 +++-
 pym/portage/sync/modules/git/__init__.py     | 4 +++-
 pym/portage/sync/modules/rsync/__init__.py   | 4 +++-
 pym/portage/sync/modules/websync/__init__.py | 8 +++++---
 4 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/pym/portage/sync/modules/cvs/__init__.py 
b/pym/portage/sync/modules/cvs/__init__.py
index 93e0e26..e1e0920 100644
--- a/pym/portage/sync/modules/cvs/__init__.py
+++ b/pym/portage/sync/modules/cvs/__init__.py
@@ -29,7 +29,7 @@ module_spec = {
        'name': 'cvs',
        'description': __doc__,
        'provides':{
-               'module1': {
+               'cvs-module': {
                        'name': "cvs",
                        'class': "CVSSync",
                        'description': __doc__,
@@ -46,6 +46,8 @@ module_spec = {
                                        'description': 'Standard python 
**kwargs parameter format' +
                                                'Please refer to the sync 
modules specs at ' +
                                                
'"https://wiki.gentoo.org:Project:Portage"; for details',
+                                       'required-keys': ['options', 
'settings', 'logger', 'repo',
+                                               'xterm_titles', 'spawn_kwargs'],
                                },
                        },
                        'validate_config': CheckCVSConfig,

diff --git a/pym/portage/sync/modules/git/__init__.py 
b/pym/portage/sync/modules/git/__init__.py
index eca44e2..593e95d 100644
--- a/pym/portage/sync/modules/git/__init__.py
+++ b/pym/portage/sync/modules/git/__init__.py
@@ -13,7 +13,7 @@ module_spec = {
        'name': 'git',
        'description': __doc__,
        'provides':{
-               'module1': {
+               'git-module': {
                        'name': "git",
                        'class': "GitSync",
                        'description': __doc__,
@@ -30,6 +30,8 @@ module_spec = {
                                        'description': 'Standard python 
**kwargs parameter format' +
                                                'Please refer to the sync 
modules specs at ' +
                                                
'"https://wiki.gentoo.org:Project:Portage"; for details',
+                                       'required-keys': ['options', 
'settings', 'logger', 'repo',
+                                               'xterm_titles', 'spawn_kwargs'],
                                },
                        },
                        'validate_config': CheckSyncConfig,

diff --git a/pym/portage/sync/modules/rsync/__init__.py 
b/pym/portage/sync/modules/rsync/__init__.py
index e3729ac..ce1daa1 100644
--- a/pym/portage/sync/modules/rsync/__init__.py
+++ b/pym/portage/sync/modules/rsync/__init__.py
@@ -13,7 +13,7 @@ module_spec = {
        'name': 'rsync',
        'description': __doc__,
        'provides':{
-               'module1': {
+               'rsync-module': {
                        'name': "rsync",
                        'class': "RsyncSync",
                        'description': __doc__,
@@ -29,6 +29,8 @@ module_spec = {
                                        'description': 'Standard python 
**kwargs parameter format' +
                                                'Please refer to the sync 
modules specs at ' +
                                                
'"https://wiki.gentoo.org:Project:Portage"; for details',
+                                       'required-keys': ['options', 
'settings', 'logger', 'repo',
+                                               'xterm_titles', 'spawn_kwargs'],
                                        },
                                },
                        'validate_config': CheckSyncConfig,

diff --git a/pym/portage/sync/modules/websync/__init__.py 
b/pym/portage/sync/modules/websync/__init__.py
index 8786210..6251535 100644
--- a/pym/portage/sync/modules/websync/__init__.py
+++ b/pym/portage/sync/modules/websync/__init__.py
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 
 """WebRSync plug-in module for portage.
-Performs a http download of a portage snapshot and verifies and
- unpacks it to the repo location.
+Performs a http download of a portage snapshot, verifies and
+unpacks it to the repo location.
 """
 
 import os
@@ -29,7 +29,7 @@ module_spec = {
        'name': 'webrsync',
        'description': __doc__,
        'provides':{
-               'module1': {
+               'websync-module': {
                        'name': "websync",
                        'class': config_class,
                        'description': __doc__,
@@ -48,6 +48,8 @@ module_spec = {
                                        'description': 'Standard python 
**kwargs parameter format' +
                                                'Please refer to the sync 
modules specs at ' +
                                                
'"https://wiki.gentoo.org:Project:Portage"; for details',
+                                       'required-keys': ['options', 
'settings', 'logger', 'repo',
+                                               'xterm_titles', 'spawn_kwargs'],
                                },
                        },
                        'validate_config': CheckSyncConfig,

Reply via email to