summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-03-16 10:31:30 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-03-16 10:31:30 +0000
commit5263c836a2381d4dee6a64f2da05e7b6231e6e77 (patch)
treeed2acb5b41fda41501bf511f7e636353645efe7a
parent055ec708a914906cad858e38cd95aa4479086fd6 (diff)
seppuku: have the name of the MACHINE in the attachment's description (as discussed on the ml)
-rw-r--r--classes/seppuku.bbclass3
1 files changed, 2 insertions, 1 deletions
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 )