From 5263c836a2381d4dee6a64f2da05e7b6231e6e77 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Sun, 16 Mar 2008 10:31:30 +0000 Subject: seppuku: have the name of the MACHINE in the attachment's description (as discussed on the ml) --- classes/seppuku.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index 02f4b9a925..c6cde6e4d4 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -246,9 +246,10 @@ 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 + logdescription = "Build log for machine %s" % (bb.data.getVar('MACHINE', data, True)) import urllib2 - param = { "bugid" : bug_number, "action" : "insert", "data" : file, "description" : "Build log", "ispatch" : "0", "contenttypemethod" : "list", "contenttypeselection" : "text/plain", "comment" : text } + param = { "bugid" : bug_number, "action" : "insert", "data" : file, "description" : logdescription, "ispatch" : "0", "contenttypemethod" : "list", "contenttypeselection" : "text/plain", "comment" : text } try: result = poster.open( attach_query, param ) -- cgit v1.2.3