Better commit message after accepting of new package.
authorMichal Vyskocil <[email protected]>
Mon, 12 Jan 2009 10:41:10 +0000 (12 11:41 +0100)
committerMichal Vyskocil <[email protected]>
Mon, 12 Jan 2009 10:41:10 +0000 (12 11:41 +0100)
osc-contrib.py

index aa8582a..6072d2c 100644 (file)
@@ -6,6 +6,8 @@
 #
 #   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)