]> git.draconx.ca Git - nullsync.git/blob - portage/sync/modules/null/__init__.py
Initial commit
[nullsync.git] / portage / sync / modules / null / __init__.py
1 # Copyright © 2016 Nick Bowler
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY of FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <https://www.gnu.org/licenses/>
15
16 from portage.sync.config_checks import CheckSyncConfig
17
18 class CheckNullConfig(CheckSyncConfig):
19     def check_uri(self):
20         pass
21
22 module_spec = {
23     'name': 'null',
24     'description': __doc__,
25     'provides': {
26         'null-module': {
27             'name': 'null',
28             'description': __doc__,
29             'class': 'NullSync',
30             'validate_config': CheckNullConfig,
31         }
32     }
33 }