summaryrefslogtreecommitdiff
path: root/classes/seppuku.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-19 17:32:08 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-19 17:32:08 +0000
commit9a17103f83b66b0280dc02a6f8d1d9c17b9979c6 (patch)
tree9fd63f97082a58cbd53007160a32ec2b72232451 /classes/seppuku.bbclass
parentbb59f9f0c2c87057ca814be33c12e7422b74e0c8 (diff)
parentec31739549849604c81a09b11568946c6ca82049 (diff)
merge of '33d36c3f90d3f3338d861f53c982c88ecc127201'
and '4fe73431c4f4506a83505d3043fbedb9763f1983'
Diffstat (limited to 'classes/seppuku.bbclass')
-rw-r--r--classes/seppuku.bbclass9
1 files changed, 4 insertions, 5 deletions
diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass
index 7e4b2098be..7241ae3e7a 100644
--- a/classes/seppuku.bbclass
+++ b/classes/seppuku.bbclass
@@ -129,7 +129,9 @@ def seppuku_find_bug_report(debug_file, opener, query, product, component, bugna
component = urllib.quote(component)
bugname = urllib.quote(bugname)
- result = opener.open("%(query)sproduct=%(product)s&component=%(component)s&short_desc_type=substring&short_desc=%(bugname)s" % vars())
+ file = "%(query)sproduct=%(product)s&component=%(component)s&short_desc_type=substring&short_desc=%(bugname)s" % vars()
+ print >> debug_file, "Trying %s" % file
+ result = opener.open(file)
if result.code != 200:
raise "Can not query the bugzilla at all"
txt = result.read()
@@ -290,7 +292,7 @@ python seppuku_eventhandler() {
if name == "PkgFailed":
if not bb.data.getVar('SEPPUKU_AUTOBUILD', data, True) == "0":
build.exec_task('do_clean', data)
- elif name == "TaskFailed" or name == "NoProvider":
+ elif name == "TaskFailed":
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
poster = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj),MultipartPostHandler.MultipartPostHandler)
@@ -326,9 +328,6 @@ python seppuku_eventhandler() {
file = open(log_file[0], 'r')
else:
print >> debug_file, "No log file found for the glob"
- #elif name == "NoProvider":
- # bugname = "noprovider for %s " % (event.getItem)
- # text = "Please fix it"
else:
print >> debug_file, "Unknown name '%s'" % name
assert False