Small adjustements.
This commit is contained in:
parent
552a6760f2
commit
e4f3d86553
|
@ -451,7 +451,7 @@ class ProjectBuilder:
|
||||||
|
|
||||||
if os.path.isdir(self._tarballDir):
|
if os.path.isdir(self._tarballDir):
|
||||||
print "Removing previous tarball directory: \"%s\"." % 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" )
|
self._execute ( command, "Removing top export (tarball) directory" )
|
||||||
|
|
||||||
print "Creating tarball directory: \"%s\"." % self._tarballDir
|
print "Creating tarball directory: \"%s\"." % self._tarballDir
|
||||||
|
@ -485,11 +485,13 @@ class ProjectBuilder:
|
||||||
#self._execute ( command, "patch for distribution command failed" )
|
#self._execute ( command, "patch for distribution command failed" )
|
||||||
|
|
||||||
os.chdir ( self._tarballDir )
|
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" )
|
self._execute ( command, "tar command failed" )
|
||||||
|
|
||||||
print "Cleanup SVN export tarball archive directory: \"%s\"." % self._archiveDir
|
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" )
|
self._execute ( command, "Removing archive export (tarball) directory" )
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue