From: Yuri Bushmelev Date: Sat, 12 Feb 2011 11:00:27 +0000 (+0300) Subject: oestats-client.bbclass: fix bug in oestat_send() code X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189273c7b7d8d3ddd8bf397d3c17e4e93959740a;p=openembedded.git oestats-client.bbclass: fix bug in oestat_send() code This should fix disabling oestats with following message: WARNING: oestats: error sending task (exception , value 'qalog'), disabling stats Signed-off-by: Yuri Bushmelev --- diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass index 9302b294ee..4233d4aeb7 100644 --- a/classes/oestats-client.bbclass +++ b/classes/oestats-client.bbclass @@ -38,7 +38,8 @@ def oestats_send(d, server, action, vars = {}, files = {}): output.append('') output.append(vars[key]) for key in files: - if not vars[key]: continue + if not files[key]: continue + if not files[key]['content']: continue output.append('--' + bound) output.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, files[key]['filename'])) output.append('Content-Type: %s' % files[key]['content-type'])