Update Git systems to newer API
offlate/systems/git.py
| 39 | 39 | item.unlink() | |
| 40 | 40 | dir.rmdir() | |
| 41 | 41 | ||
| 42 | - | class Progress(pygit2.remote.RemoteCallbacks): | |
| 42 | + | class Progress(pygit2.RemoteCallbacks): | |
| 43 | 43 | def __init__(self, callback): | |
| 44 | 44 | super().__init__() | |
| 45 | 45 | self.callback = callback |
offlate/systems/github.py
| 27 | 27 | def __init__(self, conf, name, lang, data = {}): | |
| 28 | 28 | GitProject.__init__(self, conf, name, lang, data) | |
| 29 | 29 | ||
| 30 | - | def updateURI(self): | |
| 30 | + | def _updateURI(self): | |
| 31 | 31 | repo = self.data['repo'] | |
| 32 | 32 | if repo.startswith('https://github.com/'): | |
| 33 | 33 | self.uri = repo |
offlate/systems/gitlab.py
| 26 | 26 | def __init__(self, conf, name, lang, data = {}): | |
| 27 | 27 | GitProject.__init__(self, conf, name, lang, data) | |
| 28 | 28 | ||
| 29 | - | def updateURI(self): | |
| 29 | + | def _updateURI(self): | |
| 30 | 30 | self.uri = self.data['repo'] | |
| 31 | 31 | self.branch = self.data['branch'] | |
| 32 | 32 |