#
# Copyright: (c) 2009 Michal Vyskocil <
[email protected]>
#
+# Version: 0.1
+#
@cmdln.option('-m', '--message', metavar='MESSAGE',
help='the request message (optional)')
@@ -136,7 +138,7 @@ def _do_contrib_new(self, opts, args):
def _do_contrib_accept(self, opts, args):
return self._contrib_sr_change(opts, args, "accepted",
- "Reviewed and checked OK, welcome to Contrib.")
+ "Reviewed and checked OK.")
def _do_contrib_decline(self, opts, args):
@@ -253,6 +255,8 @@ def _contrib_sr_change(self, opts, args, action, message):
# check before change of commit request
is_new_package = not package in meta_get_packagelist(self.apiurl, self.project)
+ if action == 'accepted' and is_new_package:
+ essage = "You are now a maintainer of %s in openSUSE:Factory:Contrib" % (package)
# change to the state action
response = change_submit_request_state(self.apiurl, id, action, message)