mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-07 17:40:05 +02:00
deleterequest for entire projects needs the --all option as additional protection
We had it two times this week that people dropped entire projects (important ones)
This commit is contained in:
10
NEWS
10
NEWS
@@ -1,3 +1,13 @@
|
||||
0.165
|
||||
- deleterequest for entire projects needs the --all option as additional protection
|
||||
|
||||
0.164.1
|
||||
- rewrite cpio handling to support python3
|
||||
- rewrite ar module to support python3
|
||||
- enable fetch module to support python3
|
||||
- rework progressbar hanlding (if module is not present)
|
||||
- improve os_path_samefile in core.py
|
||||
|
||||
0.164
|
||||
- add support for approved requests (requires OBS 2.10)
|
||||
|
||||
|
@@ -1946,6 +1946,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
help='specify message TEXT')
|
||||
@cmdln.option('-r', '--repository', metavar='REPOSITORY',
|
||||
help='specify repository')
|
||||
@cmdln.option('--all', action='store_true',
|
||||
help='deletes entire project with packages inside')
|
||||
@cmdln.option('--accept-in-hours', metavar='HOURS',
|
||||
help='specify time when request shall get accepted automatically. Only works with write permissions in target.')
|
||||
@cmdln.alias("dr")
|
||||
@@ -1957,8 +1959,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
|
||||
usage:
|
||||
osc deletereq [-m TEXT] # works in checked out project/package
|
||||
osc deletereq [-m TEXT] PROJECT [PACKAGE]
|
||||
osc deletereq [-m TEXT] PROJECT [--repository REPOSITORY]
|
||||
osc deletereq [-m TEXT] PROJECT PACKAGE
|
||||
osc deletereq [-m TEXT] PROJECT [--all|--repository REPOSITORY]
|
||||
${cmd_option_list}
|
||||
"""
|
||||
import cgi
|
||||
@@ -1984,6 +1986,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
else:
|
||||
raise oscerr.WrongArgs('Please specify at least a project.')
|
||||
|
||||
if (not opts.all) and package == None:
|
||||
raise oscerr.WrongOptions('No package name has been provided. Use --all option, if you want to request to delete the entire project.')
|
||||
|
||||
if opts.repository:
|
||||
repository = opts.repository
|
||||
|
||||
|
Reference in New Issue
Block a user