mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 00:06:15 +01:00
Remove deprecated '--seperate-requests' option from the 'submitrequest' command
This commit is contained in:
parent
47d4aa1eda
commit
28c898a2cb
@ -1169,8 +1169,6 @@ class Osc(cmdln.Cmdln):
|
||||
'(primary project where a package is developed)')
|
||||
@cmdln.option('--separate-requests', action='store_true',
|
||||
help='Create multiple requests instead of a single one (when command is used for entire project)')
|
||||
@cmdln.option('--seperate-requests', action='store_true',
|
||||
help='Deprecated (wrong spelling - see --separate-requests)')
|
||||
@cmdln.option('--cleanup', action='store_true',
|
||||
help='remove package if submission gets accepted (default for home:<id>:branch projects)')
|
||||
@cmdln.option('--no-cleanup', action='store_true',
|
||||
@ -1219,10 +1217,6 @@ class Osc(cmdln.Cmdln):
|
||||
|
||||
if opts.cleanup and opts.no_cleanup:
|
||||
raise oscerr.WrongOptions('\'--cleanup\' and \'--no-cleanup\' are mutually exclusive')
|
||||
if opts.seperate_requests:
|
||||
# compatibility option will be removed in the future
|
||||
print('--seperate-requests is deprecated (use '
|
||||
'--separate-requests)', file=sys.stderr)
|
||||
|
||||
src_update = conf.config['submitrequest_on_accept_action'] or None
|
||||
# we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server
|
||||
@ -1286,7 +1280,7 @@ class Osc(cmdln.Cmdln):
|
||||
target_project = None
|
||||
if len(args) == 1:
|
||||
target_project = self._process_project_name(args[0])
|
||||
if opts.separate_requests or opts.seperate_requests:
|
||||
if opts.separate_requests:
|
||||
for p in meta_get_packagelist(apiurl, project):
|
||||
# get _link info from server, that knows about the local state ...
|
||||
u = makeurl(apiurl, ['source', project, p])
|
||||
|
Loading…
Reference in New Issue
Block a user