From daf77b9debd7bde289407f3a374f97a0c58aa5d5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 12 Dec 2012 14:15:10 +0000 Subject: [PATCH] * ./bootstrap: - New: In buildCoriolis.py, in the svnCheckout command, if the source directory do not exists, create it (recursively). - Change: In buildCoriolis.py, in the svnCheckout command, take the svn tag version number in account now... --- bootstrap/buildCoriolis.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap/buildCoriolis.py b/bootstrap/buildCoriolis.py index 1838688a..b9ef2ecc 100755 --- a/bootstrap/buildCoriolis.py +++ b/bootstrap/buildCoriolis.py @@ -408,12 +408,18 @@ class ProjectBuilder: if not project.getRepository (): print ErrorMessage( 0, "Project \"%s\" isn't associated to a repository."%project.getName() ) return + + if not os.path.isdir(self._sourceDir): + print ErrorMessage( 0, "Source directory <%s> doesn't exists. Creating."%self._sourceDir ) + os.makedirs( self._sourceDir ) toolSvnTrunkDir = os.path.join ( self._svnMethod+project.getRepository(), tool, "trunk" ) os.chdir ( self._sourceDir ) print "Doing a SVN checkout of tool: ", tool command = [ "svn", "co", toolSvnTrunkDir, tool ] + if self._svnTag != "x": + command += [ "--revision", self._svnTag ] self._execute ( command, "svn checkout %s" % tool ) print return