From 79a08e001be20e26db1ac4d9d0f1ae2386fb7f92 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Wed, 20 Jun 2018 16:52:16 +0200 Subject: [PATCH] Use faster svn export instead of svn checkout --- kiwixbuild/dependencies/base.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kiwixbuild/dependencies/base.py b/kiwixbuild/dependencies/base.py index 6897ad2..1c04f74 100644 --- a/kiwixbuild/dependencies/base.py +++ b/kiwixbuild/dependencies/base.py @@ -175,19 +175,14 @@ class SvnClone(Source): def svn_path(self): return pj(neutralEnv('source_dir'), self.svn_dir) - def _svn_checkout(self, context): + def _svn_export(self, context): if os.path.exists(self.svn_path): raise SkipCommand() - command = "svn checkout {} {}".format(self.svn_remote, self.svn_dir) + command = "svn export {} {}".format(self.svn_remote, self.svn_dir) run_command(command, neutralEnv('source_dir'), context) - def _svn_update(self, context): - context.try_skip(self.svn_path) - run_command("svn update", self.svn_path, context) - def prepare(self): - self.command('svncheckout', self._svn_checkout) - self.command('svnupdate', self._svn_update) + self.command('svnexport', self._svn_export) if hasattr(self, 'patches'): self.command('patch', self._patch)