Small adjustements.

This commit is contained in:
Jean-Paul Chaput 2011-02-02 12:02:39 +00:00
parent 552a6760f2
commit e4f3d86553
1 changed files with 10 additions and 8 deletions

View File

@ -451,7 +451,7 @@ class ProjectBuilder:
if os.path.isdir(self._tarballDir):
print "Removing previous tarball directory: \"%s\"." % self._tarballDir
command = [ "/bin/rm", "-r", self._tarballDir ]
command = [ "/bin/rm", "-rf", self._tarballDir ]
self._execute ( command, "Removing top export (tarball) directory" )
print "Creating tarball directory: \"%s\"." % self._tarballDir
@ -485,11 +485,13 @@ class ProjectBuilder:
#self._execute ( command, "patch for distribution command failed" )
os.chdir ( self._tarballDir )
command = [ "/bin/tar", "jcvf", self._sourceTarBz2, os.path.basename(self._archiveDir) ]
command = [ "/bin/tar"
, "--exclude", "\\.svn"
, "-jcvf", self._sourceTarBz2, os.path.basename(self._archiveDir) ]
self._execute ( command, "tar command failed" )
print "Cleanup SVN export tarball archive directory: \"%s\"." % self._archiveDir
command = [ "/bin/rm", "-r", self._archiveDir ]
command = [ "/bin/rm", "-rf", self._archiveDir ]
self._execute ( command, "Removing archive export (tarball) directory" )
return