* ./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...
This commit is contained in:
Jean-Paul Chaput 2012-12-12 14:15:10 +00:00
parent 94a52bd09c
commit daf77b9deb
1 changed files with 6 additions and 0 deletions

View File

@ -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