comparison python/install_config.py @ 22:8da594377f18

updates so installation wont break if no .subversion directory
author k0s <k0scist@gmail.com>
date Mon, 01 Mar 2010 13:12:40 -0500
parents 57298ea7a7f1
children 8344c7a9847c
comparison
equal deleted inserted replaced
21:099a3bfa2852 22:8da594377f18
17 commands = [ ['hg', 'init'], 17 commands = [ ['hg', 'init'],
18 ['hg', 'pull', SRC], 18 ['hg', 'pull', SRC],
19 ['hg', 'update', '-C'], 19 ['hg', 'update', '-C'],
20 20
21 # site-specific files 21 # site-specific files
22 ['rm', '.subversion/config'], 22 ['mkdir', '-p', '.subversion'],
23 ['rm', '-f', '.subversion/config'],
23 ['ln', '-s', os.path.join(HOME, '.subversion_config/config'), os.path.join(HOME, '.subversion/config')], 24 ['ln', '-s', os.path.join(HOME, '.subversion_config/config'), os.path.join(HOME, '.subversion/config')],
24 ] 25 ]
25 26
26 for command in commands: 27 for command in commands:
27 code = subprocess.call(command) 28 code = subprocess.call(command)