blob: 0f1154cace67167dcd6182c23f0072fb1bbc4487 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env python
import os
import sys
import subprocess
base_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild'))
# The update needs to be very early, before we load any module
if len(sys.argv) == 1 or (len(sys.argv) > 1 and sys.argv[1] == 'build'):
print 'Updating sugar-jhbuild...'
retcode = subprocess.call(['git', 'pull'])
if retcode:
print 'sugar-jhbuild update failed.'
import main
sys.exit(main.main(sys.argv[1:]))
|