From b30c26b35a9d7b8e326b793efc43706aea2d6375 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Tue, 6 Mar 2007 23:37:35 +0000 Subject: classes/seppuku.bbclass: This could be feature complete now It is time to try it --- classes/seppuku.bbclass | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'classes/seppuku.bbclass') 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 -- cgit v1.2.3