[oe-commits] org.oe.dev seppuku: some more debugging
koen commit
openembedded-commits at lists.openembedded.org
Mon Nov 19 09:30:15 UTC 2007
seppuku: some more debugging
Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 4883c76243f7c5f694cd0bff1d17955380caee2f
ViewMTN: http://monotone.openembedded.org/revision/info/4883c76243f7c5f694cd0bff1d17955380caee2f
Files:
1
classes/seppuku.bbclass
Diffs:
#
# mt diff -r971ffbb87c4dc77cd7c5491b8ed4cc86a5782565 -r4883c76243f7c5f694cd0bff1d17955380caee2f
#
#
#
# patch "classes/seppuku.bbclass"
# from [93b34701009f7097b6eb00cde7d926bf26754c58]
# to [aa7c1e4b25e78a6657bbd1981530497920099520]
#
============================================================
--- classes/seppuku.bbclass 93b34701009f7097b6eb00cde7d926bf26754c58
+++ classes/seppuku.bbclass aa7c1e4b25e78a6657bbd1981530497920099520
@@ -240,6 +240,13 @@ def seppuku_create_attachment(debug, pos
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, pos
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()
More information about the Openembedded-commits
mailing list