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 <marco@localhost.localdomain>2007-07-06 13:54:39 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-06 13:54:39 (GMT)
commitf58ddfac69b8596854cd16dd8a8cdee05e2e9778 (patch)
tree032430a0277d5fbebefccb765aa1128ff38327aa /sugar-jhbuild
parentbec9c7e85024229d86d5c9822a5914e0e7089d65 (diff)
Handle sugar-jhbuild without parameters correctly.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild2
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: