diff options
author | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-03-17 12:37:10 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2008-03-17 12:37:10 +0000 |
commit | 9c18e09075daa471b7fc2bdb841c3fe731b81b91 (patch) | |
tree | 1c767a81c843822058e55ce99a2e5d2c586fc068 | |
parent | f01f827530979f6f7caa4b02f4dc79b5cffc6498 (diff) | |
parent | d7a340f33bf69a1d3fff48092a7d59367b71b769 (diff) |
merge of '0f8b09e59a3ffe93fca2a32d5d27746f0c582cd4'
and '495d10204bc69808fdd0046f98503c0240e1ebf7'
-rw-r--r-- | classes/seppuku.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index e158339ad8..b7aa3e20f1 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -228,7 +228,7 @@ def seppuku_file_bug(poster, file, product, component, bugname, text): else: return res[0] -def seppuku_create_attachment(debug, poster, attach_query, product, component, bug_number, text, file): +def seppuku_create_attachment(data, debug, poster, attach_query, product, component, bug_number, text, file): """ Create a new attachment for the failed report @@ -246,6 +246,7 @@ def seppuku_create_attachment(debug, poster, attach_query, product, component, b print >> debug, "Can't create an attachment, no attach_query passed to method" return False + import bb logdescription = "Build log for machine %s" % (bb.data.getVar('MACHINE', data, True)) import urllib2 @@ -351,7 +352,7 @@ python seppuku_eventhandler() { if bug_number and bug_open: print >> debug_file, "The bug is known as '%s'" % bug_number if file: - if not seppuku_create_attachment(debug_file, poster, attach, product, component, bug_number, text, file): + if not seppuku_create_attachment(data, debug_file, poster, attach, product, component, bug_number, text, file): print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number else: print >> debug_file, "Created an attachment for '%s' '%s' '%s'" % (product, component, bug_number) @@ -372,7 +373,7 @@ python seppuku_eventhandler() { print >> debug_file, "The new bug_number: '%s'" % bug_number if bug_number and file: - if not seppuku_create_attachment(debug_file, poster, attach, product, component, bug_number, text, file): + if not seppuku_create_attachment(data, debug_file, poster, attach, product, component, bug_number, text, file): print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number else: print >> debug_file, "Created an attachment for '%s' '%s' '%s'" % (product, component, bug_number) |