Update of /cvsroot/boost/boost/tools/regression/xsl_reports/utils
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24432

Modified Files:
        libxslt.py 
Log Message:
More space-related fixes

Index: libxslt.py
===================================================================
RCS file: /cvsroot/boost/boost/tools/regression/xsl_reports/utils/libxslt.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- libxslt.py  10 Feb 2006 10:43:29 -0000      1.6
+++ libxslt.py  8 May 2007 11:27:27 -0000       1.7
@@ -1,13 +1,19 @@
 
+# Copyright (c) MetaCommunications, Inc. 2003-2007
+#
+# Distributed under the Boost Software License, Version 1.0. 
+# (See accompanying file LICENSE_1_0.txt or copy at 
+# http://www.boost.org/LICENSE_1_0.txt)
+
 import utils.makedirs
 import os.path
 import os
 import sys
 
 
-def xslt_param( path ):
+def xslt_param( path, replace_spaces = 1 ):
     path = path.replace( '\\', '/' )
-    if sys.platform == 'win32':
+    if sys.platform == 'win32' and replace_spaces:
         path = path.replace( ' ', '%20' )
     return path
 
@@ -35,3 +41,10 @@
     if rc != 0:
         raise Exception( '"%s" failed with return code %d' % ( 
transform_command, rc ) )
 
+    output_file = xslt_param( output_file, 0 )
+    xlst_output_file = xslt_param( output_file )
+    if output_file != xlst_output_file:        
+        log( 'Renaming %s to %s' % ( xlst_output_file, output_file ) )
+        os.unlink( output_file )
+        os.rename( xlst_output_file, output_file )
+


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to