1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-05 08:59:19 +02:00

- osc maintainer:

-D devel_project, --devel-project=devel_project
                        define the project where this package is primarily
                        developed
- core: add addDevelProject() method
This commit is contained in:
Dr. Peter Poeml
2008-05-20 08:29:54 +00:00
parent 849e2a7153
commit d80c47c0b9
2 changed files with 29 additions and 0 deletions

View File

@@ -2082,6 +2082,8 @@ class Osc(cmdln.Cmdln):
help='show email addresses instead of user names')
@cmdln.option('-v', '--verbose', action='store_true',
help='show more information')
@cmdln.option('-D', '--devel-project', metavar='devel_project',
help='define the project where this package is primarily developed')
@cmdln.option('-a', '--add', metavar='user',
help='add a new maintainer')
@cmdln.option('-d', '--delete', metavar='user',
@@ -2136,6 +2138,9 @@ class Osc(cmdln.Cmdln):
addMaintainer(conf.config['apiurl'], prj, pac, opts.add)
elif opts.delete:
delMaintainer(conf.config['apiurl'], prj, pac, opts.delete)
elif opts.devel_project:
addDevelProject(conf.config['apiurl'], prj, pac, opts.devel_project)
else:
print ', '.join(maintainers)