Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
diff options
context:
space:
mode:
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild
index 445ee8f..5a47e0a 100755
--- a/sugar-jhbuild
+++ b/sugar-jhbuild
@@ -14,12 +14,16 @@ if os.path.exists(jhbuild_dir):
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 'Failed to update sugar-jhbuild.'
+
cwd = os.getcwd()
os.chdir(jhbuild_dir)
retcode = subprocess.call(['git', 'pull'])
if retcode:
- print 'Failed to update sugar-jhbuild.'
+ print 'Failed to update jhbuild.'
os.chdir(cwd)
else: