1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 22:56:15 +01:00
github.com_openSUSE_osc/osc
Petr Uzel 95febe963b osc co: print help instead of crashing if no arguments are given
This fixes:

~> osc checkout
Traceback (most recent call last):
  File "/usr/bin/osc", line 21, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 52, in run
    return prg.main()
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 310, in main
    return self.cmd(args)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 333, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 449, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1179, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3386, in do_checkout
    m = re.match(r"obs://([^/]+)/(\S+)/([^/]+)/([A-Fa-f\d]+)\-(\S+)", args[0])
IndexError: tuple index out of range

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-06-08 14:59:12 +02:00
..
util - don't fail if terminal encoding doesn't support unicode (fixes #660445) 2011-02-11 02:45:13 +01:00
__init__.py add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py Handle also errors which can sneak out of httplib 2011-05-26 11:54:14 +02:00
build.py - fix for commit b0ddeb909d 2011-04-28 23:55:22 +02:00
checker.py ignore gpg key import errors 2010-08-17 15:16:00 +02:00
cmdln.py Return argument to do_man back 2010-12-22 13:29:52 +01:00
commandline.py osc co: print help instead of crashing if no arguments are given 2011-06-08 14:59:12 +02:00
conf.py - fix auth failure when converting from passx to pass 2011-05-23 17:14:48 +02:00
core.py - getProjectGlobalServices: catch 400 instead of 404 2011-06-08 13:22:51 +02:00
fetch.py fix --no-init 2011-02-22 11:17:26 +01:00
meter.py - meter.py: reduced status bar (this one is used if there's no Content-Length header) 2010-09-09 14:58:33 +02:00
OscConfigParser.py - OscConfigParser.__str__: added special handling for continuation lines 2010-12-18 15:12:07 +01:00
oscerr.py - handle errors of source service runs 2011-05-24 10:49:08 +02:00
oscssl.py allow TLS only 2011-04-20 14:12:59 +02:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00