mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-04 16:49:20 +02:00
- make it possible to list by given review states
it used the state always for request and review state before, which makes no sense. makes the code a bit nicer as well hopefully as well
This commit is contained in:
@@ -2015,7 +2015,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
if opts.state == '':
|
||||
opts.state = 'all'
|
||||
|
||||
if opts.state == '':
|
||||
if opts.state == '' and subcmd != 'review':
|
||||
opts.state = 'declined,new,review'
|
||||
|
||||
if args[0] == 'help':
|
||||
@@ -2115,13 +2115,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
results = get_request_list(apiurl, project, package, '', ['new'])
|
||||
else:
|
||||
state_list = opts.state.split(',')
|
||||
if state_list == ['']:
|
||||
state_list = ()
|
||||
if opts.all:
|
||||
state_list = ['all']
|
||||
if subcmd == 'review':
|
||||
# is there a special reason why we do not respect the passed states?
|
||||
state_list = ['new']
|
||||
elif opts.state == 'all':
|
||||
state_list = ['all']
|
||||
else:
|
||||
for s in state_list:
|
||||
if not s in states and not s == 'all':
|
||||
|
Reference in New Issue
Block a user