mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
allow to specify a log message in lock command
This commit is contained in:
parent
9800a7a706
commit
2befb71663
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
||||
0.156
|
||||
- highlight scheduled jobs with dispatch problems (due to constraints)
|
||||
- allow to specify a log message in lock command
|
||||
- Add '--wipe' option to osc chroot for deleting buildroots
|
||||
|
||||
0.155
|
||||
- osc service runall: runs all service local, independend of the mode
|
||||
|
@ -3518,6 +3518,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
delete_project(apiurl, prj, opts.force, msg)
|
||||
|
||||
|
||||
@cmdln.option('-m', '--message', metavar='TEXT',
|
||||
help='specify log message TEXT')
|
||||
def do_lock(self, subcmd, opts, project, package=None):
|
||||
"""${cmd_name}: Locks a project or package.
|
||||
|
||||
@ -3542,7 +3544,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
lock = ET.SubElement(root, 'lock')
|
||||
ET.SubElement(lock, 'enable')
|
||||
meta = ET.tostring(root)
|
||||
edit_meta(kind, path_args=path_args, data=meta)
|
||||
edit_meta(kind, path_args=path_args, data=meta, msg=opts.message)
|
||||
|
||||
|
||||
@cmdln.option('-m', '--message', metavar='TEXT',
|
||||
|
Loading…
Reference in New Issue
Block a user