diff options
author | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-11-09 00:10:22 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpgritti@gmail.com> | 2008-11-09 00:10:22 (GMT) |
commit | 6589fe47ba3a23061b341f81eacaa935f483c554 (patch) | |
tree | f169f0d33a0a5c8dacb8c9a1b7fb83394a4aacef /sugar-jhbuild | |
parent | 2224d9ab6b1d8af808d20ac13c2f67b80853cdd3 (diff) |
Previous check was actually not working.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-x | sugar-jhbuild | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild index 8146547..f185923 100755 --- a/sugar-jhbuild +++ b/sugar-jhbuild @@ -3,7 +3,6 @@ import os import sys import subprocess -import optparse base_dir = os.path.abspath(os.path.dirname(__file__)) jhbuild_dir = os.path.join(base_dir, 'jhbuild') @@ -11,12 +10,10 @@ jhbuild_dir = os.path.join(base_dir, 'jhbuild') sys.path.append(os.path.join(base_dir, 'scripts')) sys.path.append(jhbuild_dir) -parser = optparse.OptionParser() -parser.disable_interspersed_args() -options, args = parser.parse_args(sys.argv[1:]) +args = sys.argv[1:] if os.path.exists(jhbuild_dir): - if not args or args[0] in ('build', 'update'): + if not args or 'build' in args or 'update' in args: print 'Updating sugar-jhbuild...' retcode = subprocess.call(['git', 'pull']) |