From 3490310b33bf31f83b0437a3ab928fe13952e816 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 06 Jul 2007 08:29:07 +0000 Subject: Update sugar-jhbuild when doing a full build. --- (limited to 'sugar-jhbuild') 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:]) -- cgit v0.9.1