diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-20 08:53:12 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2008-04-20 08:53:12 (GMT) |
commit | 03f98774e474b2edc27ab880274c35078a43f48e (patch) | |
tree | 3e5212dfc42921b35ad29875fc9d389584909a03 /sugar-jhbuild | |
parent | 62b242857c68bffc5da4283079133126da21bf97 (diff) |
Update also sugar-jhbuild
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: |