Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-06 08:29:07 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-06 08:29:07 (GMT)
commit3490310b33bf31f83b0437a3ab928fe13952e816 (patch)
treecc3921115d53b42ae325095233faa8977241301b /sugar-jhbuild
parent75e9f4c18969bbd5890b7a31a0d8d6c07ffff051 (diff)
Update sugar-jhbuild when doing a full build.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild
index 99fa61a..f98a6b1 100755
--- a/sugar-jhbuild
+++ b/sugar-jhbuild
@@ -2,10 +2,18 @@
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) > 0 and sys.argv[1] == 'build':
+ print 'Updating sugar-jhbuild...'
+ retcode = subprocess.call(['git', 'pull'])
+ if retcode:
+ print 'sugar-jhbuild update failed.'
+
import main
main.main(sys.argv[1:])