From 25a164a3c12c1e6a28cfed75b014f900251b7686 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 08 Nov 2008 00:59:55 +0000 Subject: Update jhbuild on the update command. --- (limited to 'sugar-jhbuild') 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']) -- cgit v0.9.1