mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +01:00
Give some status output if request list was empty.
Either there where no requests or the project didn't exist. Fixes bnc#543999
This commit is contained in:
parent
93f87c9838
commit
6676d530bc
@ -1954,6 +1954,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
results = get_request_list(apiurl, project, package, who,
|
||||
state_list, opts.type, opts.exclude_target_project or [])
|
||||
|
||||
# Check if project actually exists if result list is empty
|
||||
if not results:
|
||||
try:
|
||||
show_project_meta(apiurl, project)
|
||||
print 'No results for {0}'.format(project)
|
||||
except:
|
||||
print 'Project {0} does not exist'.format(project)
|
||||
return
|
||||
|
||||
results.sort(reverse=True)
|
||||
import time
|
||||
days = opts.days or conf.config['request_list_days']
|
||||
|
Loading…
Reference in New Issue
Block a user