summaryrefslogtreecommitdiff
path: root/classes/seppuku.bbclass
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-08-19 14:29:12 +0000
committerHolger Freyther <zecke@selfish.org>2007-08-19 14:29:12 +0000
commit24ee47ea5888aa36c0f82818b187dd8940c383b8 (patch)
treead5e51bc81d98665c67fc8df3ebace5ded258a96 /classes/seppuku.bbclass
parent73bbdc961a43a2527e51fb8aa69b0adc30dd3d8b (diff)
classes/seppuku.bbclass: We can't handle NoProvider for, don't handle it properly, more debugging added
BitBake 1.8 is firing NoProvider in non fatal cases. We have to honor that for now.
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