Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-11-08 00:59:55 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-11-08 00:59:55 (GMT)
commit25a164a3c12c1e6a28cfed75b014f900251b7686 (patch)
tree1c5512e5b521eb57e6cda6d524c538897ffbe8bd /sugar-jhbuild
parentc29f173458cf8c9177baaecd675932538d4f8db9 (diff)
Update jhbuild on the update command.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild
index 5a47e0a..74c64de 100755
--- a/sugar-jhbuild
+++ b/sugar-jhbuild
@@ -11,7 +11,8 @@ sys.path.append(os.path.join(base_dir, 'scripts'))
sys.path.append(jhbuild_dir)
if os.path.exists(jhbuild_dir):
- if len(sys.argv) == 1 or (len(sys.argv) > 1 and sys.argv[1] == 'build'):
+ if len(sys.argv) == 1 or (len(sys.argv) > 1 and \
+ sys.argv[1] in ('build', 'update')):
print 'Updating sugar-jhbuild...'
retcode = subprocess.call(['git', 'pull'])