diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-02 11:06:59 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-02 11:06:59 +0000 |
commit | bc4750318ea0e0e23dbe75b66330078de67bb53e (patch) | |
tree | 3c44d08e5bc77f6079a58f86f15a7f814aaf4f5e | |
parent | 47ea9ba7123790f95d535d657809a6027fd400e4 (diff) | |
download | poky-bc4750318ea0e0e23dbe75b66330078de67bb53e.tar.gz |
tinderclient.bbclass: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2647 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/classes/tinderclient.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index d1d9f49fac..bc004efb26 100644 --- a/meta/classes/tinderclient.bbclass +++ b/meta/classes/tinderclient.bbclass | |||
@@ -24,6 +24,7 @@ def tinder_form_data(bound, dict, log): | |||
24 | output = [] | 24 | output = [] |
25 | # for each key in the dictionary | 25 | # for each key in the dictionary |
26 | for name in dict: | 26 | for name in dict: |
27 | assert dict[name] | ||
27 | output.append( "--" + bound ) | 28 | output.append( "--" + bound ) |
28 | output.append( 'Content-Disposition: form-data; name="%s"' % name ) | 29 | output.append( 'Content-Disposition: form-data; name="%s"' % name ) |
29 | output.append( "" ) | 30 | output.append( "" ) |
@@ -60,7 +61,7 @@ def tinder_format_http_post(d,status,log): | |||
60 | "os" : os.uname()[0], | 61 | "os" : os.uname()[0], |
61 | "os_version" : os.uname()[2], | 62 | "os_version" : os.uname()[2], |
62 | "compiler" : "gcc", | 63 | "compiler" : "gcc", |
63 | "clobber" : data.getVar('TINDER_CLOBBER', d, True), | 64 | "clobber" : data.getVar('TINDER_CLOBBER', d, True) or "0", |
64 | "srcdate" : data.getVar('SRCDATE', d, True), | 65 | "srcdate" : data.getVar('SRCDATE', d, True), |
65 | "PN" : data.getVar('PN', d, True), | 66 | "PN" : data.getVar('PN', d, True), |
66 | "PV" : data.getVar('PV', d, True), | 67 | "PV" : data.getVar('PV', d, True), |
@@ -370,9 +371,9 @@ def tinder_do_tinder_report(event): | |||
370 | addhandler tinderclient_eventhandler | 371 | addhandler tinderclient_eventhandler |
371 | python tinderclient_eventhandler() { | 372 | python tinderclient_eventhandler() { |
372 | from bb import note, error, data | 373 | from bb import note, error, data |
373 | from bb.event import NotHandled | 374 | from bb.event import NotHandled, getName |
374 | 375 | ||
375 | if e.data is None: | 376 | if e.data is None or getName(e) == "MsgNote": |
376 | return NotHandled | 377 | return NotHandled |
377 | 378 | ||
378 | do_tinder_report = data.getVar('TINDER_REPORT', e.data, True) | 379 | do_tinder_report = data.getVar('TINDER_REPORT', e.data, True) |