]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - config.py
apply back 335 and 336, will need to update deps and put a zip out
[xonotic/netradiant.git] / config.py
index 563dab65a884c6ebd9b84a9444c0cc75bbdbd608..ad7ad9e924ec12074a2f1e3dc852ef9eb3ad67ab 100644 (file)
--- a/config.py
+++ b/config.py
@@ -1,4 +1,4 @@
-import sys, traceback, platform, re, commands, platform
+import sys, traceback, platform, re, commands, platform, subprocess
 
 if __name__ != '__main__':
        from SCons.Script import *
@@ -250,14 +250,11 @@ class Config:
 
        def CheckoutOrUpdate( self, svnurl, path ):
                if ( os.path.exists( path ) ):
-                       # NOTE: check the svnurl matches?
-                       cmd = 'svn update "%s"' % path
-                       print cmd
+                        cmd = [ 'svn', 'update', path ]
                else:
-                       cmd = 'svn checkout %s "%s"' % ( svnurl, path )
-               ret = os.system( cmd )
-               if ( ret != 0 ):
-                       raise Exception( 'checkout or update failed' )
+                        cmd = [ 'svn', 'checkout', svnurl, path ]
+                print( repr( cmd ) )
+                subprocess.check_call( cmd )
 
 
        def FetchGamePaks( self, path ):