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

let 'osc submitpac' default to do cleanup.

In my understanding a submit is often considered a move and not a copy.
This commit is contained in:
Juergen Weigert 2010-11-26 12:39:09 +01:00
parent 044ffdd62e
commit 955522f8e1

View File

@ -737,11 +737,18 @@ class Osc(cmdln.Cmdln):
osc submitreq [OPTIONS]
osc submitreq [OPTIONS] DESTPRJ [DESTPKG]
osc submitreq [OPTIONS] SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
osc submitpac ... is a shorthand for osc submitreq --cleanup ...
${cmd_option_list}
"""
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
if subcmd == 'submitpac' and opts.no_cleanup == False:
opts.cleanup = True;
if opts.cleanup:
src_update = "cleanup"
elif opts.no_cleanup: