From a0978a6ab496997b8584cd9058c90d7d5d492645 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 30 Nov 2023 13:45:35 +0100 Subject: [PATCH] Remove SvnClone. We don't use it since a long time. --- kiwixbuild/buildenv.py | 3 +-- kiwixbuild/dependencies/base.py | 24 ------------------------ 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/kiwixbuild/buildenv.py b/kiwixbuild/buildenv.py index 281a8fd..458542f 100644 --- a/kiwixbuild/buildenv.py +++ b/kiwixbuild/buildenv.py @@ -30,7 +30,6 @@ class PlatformNeutralEnv: self.mesontest_command = [*self.meson_command, "test"] self.patch_command = self._detect_command('patch') self.git_command = self._detect_command('git') - self.svn_command = self._detect_command('svn') self.make_command = self._detect_command('make') self.cmake_command = self._detect_command('cmake') self.qmake_command = self._detect_command('qmake', required=False) @@ -53,7 +52,7 @@ class PlatformNeutralEnv: def download(self, what, where=None): where = where or self.archive_dir download_remote(what, where) - + def _detect_command(self, name, default=None, options=['--version'], required=True): if default is None: diff --git a/kiwixbuild/dependencies/base.py b/kiwixbuild/dependencies/base.py index 4cae628..a778c6a 100644 --- a/kiwixbuild/dependencies/base.py +++ b/kiwixbuild/dependencies/base.py @@ -196,30 +196,6 @@ class GitClone(Source): self.command('post_prepare_script', self._post_prepare_script) -class SvnClone(Source): - @property - def source_dir(self): - return self.svn_dir - - @property - def svn_path(self): - return pj(neutralEnv('source_dir'), self.svn_dir) - - def _svn_export(self, context): - if os.path.exists(self.svn_path): - raise SkipCommand() - command = [ - *neutralEnv('svn_command'), "export", - self.svn_remote, self.svn_dir - ] - run_command(command, neutralEnv('source_dir'), context) - - def prepare(self): - self.command('svnexport', self._svn_export) - if hasattr(self, 'patches'): - self.command('patch', self._patch) - - class Builder: subsource_dir = None dependencies = []