diff options
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-x | sugar-jhbuild | 6 |
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: |