1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

tinderclient.bbclass: Sync with OE

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2647 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-09-02 11:06:59 +00:00
parent 47ea9ba712
commit bc4750318e
+4 -3
View File
@@ -24,6 +24,7 @@ def tinder_form_data(bound, dict, log):
output = [] output = []
# for each key in the dictionary # for each key in the dictionary
for name in dict: for name in dict:
assert dict[name]
output.append( "--" + bound ) output.append( "--" + bound )
output.append( 'Content-Disposition: form-data; name="%s"' % name ) output.append( 'Content-Disposition: form-data; name="%s"' % name )
output.append( "" ) output.append( "" )
@@ -60,7 +61,7 @@ def tinder_format_http_post(d,status,log):
"os" : os.uname()[0], "os" : os.uname()[0],
"os_version" : os.uname()[2], "os_version" : os.uname()[2],
"compiler" : "gcc", "compiler" : "gcc",
"clobber" : data.getVar('TINDER_CLOBBER', d, True), "clobber" : data.getVar('TINDER_CLOBBER', d, True) or "0",
"srcdate" : data.getVar('SRCDATE', d, True), "srcdate" : data.getVar('SRCDATE', d, True),
"PN" : data.getVar('PN', d, True), "PN" : data.getVar('PN', d, True),
"PV" : data.getVar('PV', d, True), "PV" : data.getVar('PV', d, True),
@@ -370,9 +371,9 @@ def tinder_do_tinder_report(event):
addhandler tinderclient_eventhandler addhandler tinderclient_eventhandler
python tinderclient_eventhandler() { python tinderclient_eventhandler() {
from bb import note, error, data from bb import note, error, data
from bb.event import NotHandled from bb.event import NotHandled, getName
if e.data is None: if e.data is None or getName(e) == "MsgNote":
return NotHandled return NotHandled
do_tinder_report = data.getVar('TINDER_REPORT', e.data, True) do_tinder_report = data.getVar('TINDER_REPORT', e.data, True)