diff options
author | Koen Kooi <koen@openembedded.org> | 2007-11-19 09:05:18 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-11-19 09:05:18 +0000 |
commit | de69297d6938ba82f831311add8ad2360eddf467 (patch) | |
tree | 014ca4fce1816568c744cf0f2694994ba87bf3e1 /classes/seppuku.bbclass | |
parent | 87991629f575fe184f962f6305d4b91849389755 (diff) |
seppuku: some more debugging
Diffstat (limited to 'classes/seppuku.bbclass')
-rw-r--r-- | classes/seppuku.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/seppuku.bbclass b/classes/seppuku.bbclass index c7392565f2..834bee34b4 100644 --- a/classes/seppuku.bbclass +++ b/classes/seppuku.bbclass @@ -240,6 +240,13 @@ def seppuku_create_attachment(debug, poster, attach_query, product, component, b print >> debug, "Can't create an attachment, no bugnumber passed to method" return False + if not attach_query: + import bb + bb.note("Can't create an attachment, no attach_query passed to method") + print >> debug, "Can't create an attachment, no attach_query passed to method" + return False + + import urllib2 param = { "bugid" : bug_number, "action" : "insert", "data" : file, "description" : "Build log", "ispatch" : "0", "contenttypemethod" : "list", "contenttypeselection" : "text/plain", "comment" : text } @@ -252,6 +259,7 @@ def seppuku_create_attachment(debug, poster, attach_query, product, component, b except Exception, e: print e print >> debug, "Got exception in poster.open( attach_query, param )" + print >> debug, "attach_query: %s param: %s" % (attach_query, param ) return False txt = result.read() |