summaryrefslogtreecommitdiff
path: root/classes/seppuku.bbclass
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-03-06 23:37:35 +0000
committerHolger Freyther <zecke@selfish.org>2007-03-06 23:37:35 +0000
commitb30c26b35a9d7b8e326b793efc43706aea2d6375 (patch)
tree1a4c5a11928a97f6d56d81bdafb0627a29548e50 /classes/seppuku.bbclass
parentc38184d0a897b3d15a545c67d618e83b36e22fa0 (diff)
classes/seppuku.bbclass: This could be feature complete now
It is time to try it
Diffstat (limited to 'classes/seppuku.bbclass')
-rw-r--r--classes/seppuku.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass
index 4a3eced73d..716fdabe0d 100644
--- a/classes/seppuku.bbclass
+++ b/classes/seppuku.bbclass
@@ -112,6 +112,24 @@ def seppuku_find_bug_report(opener, query, product, component, bugname):
(number,status) = scanner.result()[0]
return (status != "CLOSED",number)
+def seppuku_reopen_bug(opener, file, product, component, bug_number, bugname, text):
+ """
+ Reopen a bug report and append to the comment
+
+ Same as with opening a new report, some bits need to be inside the url
+
+ http://bugzilla.openmoko.org/cgi-bin/bugzilla/process_bug.cgi?id=239&bug_file_loc=http%3A%2F%2F&version=2007&longdesclength=2&product=OpenMoko&component=autobuilds&comment=bla&priority=P2&bug_severity=normal&op_sys=Linux&rep_platform=Neo1973&knob=reopen&target_milestone=Phase+0&short_desc=foo
+ """
+
+ import urllib
+ param = urllib.urlencode( { "product" : product, "component" : component, "longdesclength" : 2,
+ "short_desc" : bugname, "comment" : text, "knob" : "reopen" } )
+ result = opener.open( file + param )
+ if result.code != 200:
+ return False
+ else
+ return True
+
def seppuku_file_bug(opener, file, product, component, bugname, text):
"""
Create a completely new bug report