mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-25 22:36:13 +01:00
Display meaningful message for queries w/o project
Like: osc rq list -U $USER -t change_devel
This commit is contained in:
parent
4007800880
commit
d338254bb7
@ -2027,11 +2027,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
# Check if project actually exists if result list is empty
|
# Check if project actually exists if result list is empty
|
||||||
if not results:
|
if not results:
|
||||||
|
if project:
|
||||||
try:
|
try:
|
||||||
show_project_meta(apiurl, project)
|
show_project_meta(apiurl, project)
|
||||||
print('No results for {0}'.format(project))
|
print('No results for {0}'.format(project))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
print('Project {0} does not exist'.format(project))
|
print('Project {0} does not exist'.format(project))
|
||||||
|
else:
|
||||||
|
print('No results')
|
||||||
return
|
return
|
||||||
|
|
||||||
results.sort(reverse=True)
|
results.sort(reverse=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user