1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 12:12:11 +01:00

remove broken -l option to osc sr

This commit is contained in:
Ludwig Nussel 2010-02-02 13:34:12 +01:00
parent 098ec5b861
commit 048c479a3e

View File

@ -666,8 +666,6 @@ class Osc(cmdln.Cmdln):
help='never touch source package on accept (will break source links)') help='never touch source package on accept (will break source links)')
@cmdln.option('-d', '--diff', action='store_true', @cmdln.option('-d', '--diff', action='store_true',
help='show diff only instead of creating the actual request') help='show diff only instead of creating the actual request')
@cmdln.option('-l', '--list', action='store_true',
help='show submitrequests. Same as \'osc req list -M -a -t submit -D 0\'')
@cmdln.option('--yes', action='store_true', @cmdln.option('--yes', action='store_true',
help='proceed without asking.') help='proceed without asking.')
@cmdln.alias("sr") @cmdln.alias("sr")
@ -688,17 +686,6 @@ class Osc(cmdln.Cmdln):
${cmd_option_list} ${cmd_option_list}
""" """
if opts.list:
opts.state = ""
opts.user = ""
opts.all = True
opts.brief = False
opts.unified = False
opts.type = "submit"
opts.mine = True
opts.days = conf.config['request_list_days']
return self.do_request('list', opts, *args)
src_update = conf.config['submitrequest_on_accept_action'] or None src_update = conf.config['submitrequest_on_accept_action'] or None
# we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server # we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server
if opts.cleanup: if opts.cleanup:
@ -715,10 +702,9 @@ class Osc(cmdln.Cmdln):
if args and args[0] in oldcmds: if args and args[0] in oldcmds:
print "************************************************************************" print "************************************************************************"
print "* WARNING: It looks that you are using this command with a *" print "* WARNING: It looks that you are using this command with a *"
print "* deprecated syntax (maybe) ! *" print "* deprecated syntax. *"
print "* Please run \"osc sr --help\" and \"osc req --help\" *" print "* Please run \"osc sr --help\" and \"osc rq --help\" *"
print "* to see the new syntax. *" print "* to see the new syntax. *"
print "* E.g. \"osc sr -l\" is shortcut for \"osc req list -M -a -t submit -D 0\" *"
print "************************************************************************" print "************************************************************************"
if args[0] == 'create': if args[0] == 'create':
args.pop(0) args.pop(0)