From 0bf48f2b739bb25ea1ec332b3565a79446400af3 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Sat, 19 Dec 2009 14:44:51 +0100 Subject: [PATCH] - added support to specify a default action if a submitrequest has been accepted --- osc/commandline.py | 2 +- osc/conf.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 6072e854..a6a90ef0 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -686,7 +686,7 @@ class Osc(cmdln.Cmdln): opts.days = conf.config['request_list_days'] return self.do_request('list', opts, *args) - src_update = None + src_update = conf.config['submitrequest_on_accept_action'] or None # we should check here for home::branch and default to update, but that would require OBS 1.7 server if opts.cleanup: src_update = "cleanup" diff --git a/osc/conf.py b/osc/conf.py index b26fca28..2c6f521b 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -106,6 +106,8 @@ DEFAULTS = { 'apiurl': 'https://api.opensuse.org', 'check_filelist': '1', # check for pending requests after executing an action (e.g. checkout, update, commit) 'check_for_request_on_action': '0', + # what to do with the source package if the submitrequest has been accepted + 'submitrequest_on_accept_action': '', 'linkcontrol': '0', # Maintenance defaults to OBS instance defaults @@ -190,6 +192,10 @@ apiurl = %(apiurl)s # check for pending requests after executing an action (e.g. checkout, update, commit) #check_for_request_on_action = 0 +# what to do with the source package if the submitrequest has been accepted. If +# nothing is specified the API default is used +#submitrequest_on_accept_action = cleanup|update|noupdate + [%(apiurl)s] user = %(user)s pass = %(pass)s