aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-08-19 14:24:20 +0000
committerHolger Freyther <zecke@selfish.org>2007-08-19 14:24:20 +0000
commit73bbdc961a43a2527e51fb8aa69b0adc30dd3d8b (patch)
treee4225fc0bb78c8d30711100667c4343bf871c646 /classes
parent44d10543c4c7f745457ad0accde5d1a96fe0bb95 (diff)
downloadopenembedded-73bbdc961a43a2527e51fb8aa69b0adc30dd3d8b.tar.gz
classes/tinderclient.bbclass: Assert for not None when posting, do not handle MsgNote
Diffstat (limited to 'classes')
-rw-r--r--classes/tinderclient.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/tinderclient.bbclass b/classes/tinderclient.bbclass
index d1d9f49fac..7a75845e61 100644
--- a/classes/tinderclient.bbclass
+++ b/classes/tinderclient.bbclass
@@ -24,6 +24,7 @@ def tinder_form_data(bound, dict, log):
output = []
# for each key in the dictionary
for name in dict:
+ assert dict[name]
output.append( "--" + bound )
output.append( 'Content-Disposition: form-data; name="%s"' % name )
output.append( "" )
@@ -60,7 +61,7 @@ def tinder_format_http_post(d,status,log):
"os" : os.uname()[0],
"os_version" : os.uname()[2],
"compiler" : "gcc",
- "clobber" : data.getVar('TINDER_CLOBBER', d, True),
+ "clobber" : data.getVar('TINDER_CLOBBER', d, True) or "0",
"srcdate" : data.getVar('SRCDATE', d, True),
"PN" : data.getVar('PN', d, True),
"PV" : data.getVar('PV', d, True),
@@ -370,9 +371,9 @@ def tinder_do_tinder_report(event):
addhandler tinderclient_eventhandler
python tinderclient_eventhandler() {
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 etName(e) == "MsgNote":
return NotHandled
do_tinder_report = data.getVar('TINDER_REPORT', e.data, True)