Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-10-29 12:12:14


Author: grafik
Date: 2007-10-29 12:12:14 EDT (Mon, 29 Oct 2007)
New Revision: 40556
URL: http://svn.boost.org/trac/boost/changeset/40556

Log:
Fix force-update and have-source options to be correct boolean options. And bring back the rmtree code to work around Python rmtree deficiencies.
Text files modified:
   trunk/tools/regression/src/regression.py | 18 ++++++++++--------
   1 files changed, 10 insertions(+), 8 deletions(-)

Modified: trunk/tools/regression/src/regression.py
==============================================================================
--- trunk/tools/regression/src/regression.py (original)
+++ trunk/tools/regression/src/regression.py 2007-10-29 12:12:14 EDT (Mon, 29 Oct 2007)
@@ -75,9 +75,11 @@
         opt.add_option( '--local',
             help="the name of the boost tarball" )
         opt.add_option( '--force-update',
- help="do an SVN update (if applicable) instead of a clean checkout, even when performing a full run" )
+ help="do an SVN update (if applicable) instead of a clean checkout, even when performing a full run",
+ action='store_true' )
         opt.add_option( '--have-source',
- help="do neither a tarball download nor an SVN update; used primarily for testing script changes" )
+ help="do neither a tarball download nor an SVN update; used primarily for testing script changes",
+ action='store_true' )
 
         #~ Connection Options:
         opt.add_option( '--proxy',
@@ -457,12 +459,12 @@
     def rmtree(self,path):
         if os.path.exists( path ):
             import shutil
- shutil.rmtree( unicode( path ) )
- #~ if sys.platform == 'win32':
- #~ os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
- #~ shutil.rmtree( unicode( path ) )
- #~ else:
- #~ os.system( 'rm -f -r "%s"' % path )
+ #~ shutil.rmtree( unicode( path ) )
+ if sys.platform == 'win32':
+ os.system( 'del /f /s /q "%s" >nul 2>&1' % path )
+ shutil.rmtree( unicode( path ) )
+ else:
+ os.system( 'rm -f -r "%s"' % path )
 
     def refresh_timestamp( self ):
         if os.path.exists( self.timestamp_path ):


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk