apply back 335 and 336, will need to update deps and put a zip out
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@343 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
13
config.py
13
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 ):
|
||||
|
||||
Reference in New Issue
Block a user