]> git.draconx.ca Git - nullsync.git/blob - portage/sync/modules/null/null.py
Initial commit
[nullsync.git] / portage / sync / modules / null / null.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.syncbase import NewBase
17
18 class NullSync(NewBase):
19     def __init__(self):
20         NewBase.__init__(self, None, None)
21
22     def has_bin(self):
23         return True
24
25     def update(self, **kwargs):
26         return (0, True)