Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:])