From f58ddfac69b8596854cd16dd8a8cdee05e2e9778 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 06 Jul 2007 13:54:39 +0000 Subject: Handle sugar-jhbuild without parameters correctly. --- (limited to 'sugar-jhbuild') diff --git a/sugar-jhbuild b/sugar-jhbuild index f98a6b1..5cd450c 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -8,7 +8,7 @@ base_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild')) # The update needs to be very early, before we load any module -if len(sys.argv) > 0 and sys.argv[1] == 'build': +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: -- cgit v0.9.1