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

- do_submitrequest: --cleanup and --no-cleanup are mutually exclusive

This commit is contained in:
Marcus Huewe 2010-11-26 14:53:30 +01:00
parent f77ab86010
commit 94836bcbf7

View File

@ -743,6 +743,9 @@ class Osc(cmdln.Cmdln):
${cmd_option_list} ${cmd_option_list}
""" """
if opts.cleanup and opts.no_cleanup:
raise oscerr.WrongOptions('\'--cleanup\' and \'--no-cleanup\' are mutually exclusive')
src_update = conf.config['submitrequest_on_accept_action'] or None 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 # we should check here for home:<id>:branch and default to update, but that would require OBS 1.7 server