diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-06 13:54:39 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-06 13:54:39 (GMT) |
commit | f58ddfac69b8596854cd16dd8a8cdee05e2e9778 (patch) | |
tree | 032430a0277d5fbebefccb765aa1128ff38327aa /sugar-jhbuild | |
parent | bec9c7e85024229d86d5c9822a5914e0e7089d65 (diff) |
Handle sugar-jhbuild without parameters correctly.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-x | sugar-jhbuild | 2 |
1 files changed, 1 insertions, 1 deletions
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: |