1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Merge branch 'add_release_project_to_print_if_exists' of https://github.com/lethliel/osc

Print out the release project (if known) when creating a maintenance
request (just to be a bit more verbose).
This commit is contained in:
Marcus Huewe 2020-02-04 19:50:27 +01:00
commit 55dcfa72c6

View File

@ -3283,7 +3283,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
target_project = project.get('name') target_project = project.get('name')
if opts.incident: if opts.incident:
target_project += ":" + opts.incident target_project += ":" + opts.incident
print('Using target project \'%s\'' % target_project) release_in = ''
if release_project is not None:
release_in = '. (release in \'%s\')' % release_project
print('Using target project \'%s\'%s' % (target_project, release_in))
if not opts.message: if not opts.message:
opts.message = edit_message() opts.message = edit_message()