diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-05 21:15:08 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-09 13:39:11 +0000 |
| commit | 022a8b58c862a1db68c2dcddc908317e5d61d92e (patch) | |
| tree | 55fbd06754d21b0cad93128e0c912acc2638a959 /meta/classes/tinderclient.bbclass | |
| parent | e016eb10b075e280b4e78a04e47b59a173386421 (diff) | |
| download | poky-022a8b58c862a1db68c2dcddc908317e5d61d92e.tar.gz | |
meta/scripts: Various getVar/getVarFlag expansion parameter fixes
There were a few straggling expansion parameter removals left for
getVar/getVarFlag where the odd whitespace meant they were missed
on previous passes. There were also some plain broken ussages such
as:
d.getVar('ALTERNATIVE_TARGET', old_name, True)
path = d.getVar('PATH', d, True)
d.getVar('IMAGE_ROOTFS', 'True')
which I've corrected (they happend to work by luck).
(From OE-Core rev: 688f7a64917a5ce5cbe12f8e5da4d47e265d240f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/tinderclient.bbclass')
| -rw-r--r-- | meta/classes/tinderclient.bbclass | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index 706a392d7f..00f453cec1 100644 --- a/meta/classes/tinderclient.bbclass +++ b/meta/classes/tinderclient.bbclass | |||
| @@ -82,7 +82,7 @@ def tinder_format_http_post(d,status,log): | |||
| 82 | # we only need on build_status.pl but sending it | 82 | # we only need on build_status.pl but sending it |
| 83 | # always does not hurt | 83 | # always does not hurt |
| 84 | try: | 84 | try: |
| 85 | f = open(d.getVar('TMPDIR',True)+'/tinder-machine.id', 'r') | 85 | f = open(d.getVar('TMPDIR')+'/tinder-machine.id', 'r') |
| 86 | id = f.read() | 86 | id = f.read() |
| 87 | variables['machine_id'] = id | 87 | variables['machine_id'] = id |
| 88 | except: | 88 | except: |
| @@ -106,8 +106,8 @@ def tinder_build_start(d): | |||
| 106 | 106 | ||
| 107 | # get the body and type | 107 | # get the body and type |
| 108 | content_type, body = tinder_format_http_post(d,None,None) | 108 | content_type, body = tinder_format_http_post(d,None,None) |
| 109 | server = d.getVar('TINDER_HOST', True ) | 109 | server = d.getVar('TINDER_HOST') |
| 110 | url = d.getVar('TINDER_URL', True ) | 110 | url = d.getVar('TINDER_URL') |
| 111 | 111 | ||
| 112 | selector = url + "/xml/build_start.pl" | 112 | selector = url + "/xml/build_start.pl" |
| 113 | 113 | ||
| @@ -163,16 +163,16 @@ def tinder_print_info(d): | |||
| 163 | time = tinder_time_string() | 163 | time = tinder_time_string() |
| 164 | ops = os.uname()[0] | 164 | ops = os.uname()[0] |
| 165 | version = os.uname()[2] | 165 | version = os.uname()[2] |
| 166 | url = d.getVar( 'TINDER_URL' , True ) | 166 | url = d.getVar('TINDER_URL') |
| 167 | tree = d.getVar( 'TINDER_TREE', True ) | 167 | tree = d.getVar('TINDER_TREE') |
| 168 | branch = d.getVar( 'TINDER_BRANCH', True ) | 168 | branch = d.getVar('TINDER_BRANCH') |
| 169 | srcdate = d.getVar( 'SRCDATE', True ) | 169 | srcdate = d.getVar('SRCDATE') |
| 170 | machine = d.getVar( 'MACHINE', True ) | 170 | machine = d.getVar('MACHINE') |
| 171 | distro = d.getVar( 'DISTRO', True ) | 171 | distro = d.getVar('DISTRO') |
| 172 | bbfiles = d.getVar( 'BBFILES', True ) | 172 | bbfiles = d.getVar('BBFILES') |
| 173 | tarch = d.getVar( 'TARGET_ARCH', True ) | 173 | tarch = d.getVar('TARGET_ARCH') |
| 174 | fpu = d.getVar( 'TARGET_FPU', True ) | 174 | fpu = d.getVar('TARGET_FPU') |
| 175 | oerev = d.getVar( 'OE_REVISION', True ) or "unknown" | 175 | oerev = d.getVar('OE_REVISION') or "unknown" |
| 176 | 176 | ||
| 177 | # there is a bug with tipple quoted strings | 177 | # there is a bug with tipple quoted strings |
| 178 | # i will work around but will fix the original | 178 | # i will work around but will fix the original |
| @@ -326,7 +326,7 @@ def tinder_do_tinder_report(event): | |||
| 326 | status = 100 | 326 | status = 100 |
| 327 | # Check if we have a old status... | 327 | # Check if we have a old status... |
| 328 | try: | 328 | try: |
| 329 | h = open(event.data.getVar('TMPDIR',True)+'/tinder-status', 'r') | 329 | h = open(event.data.getVar('TMPDIR')+'/tinder-status', 'r') |
| 330 | status = int(h.read()) | 330 | status = int(h.read()) |
| 331 | except: | 331 | except: |
| 332 | pass | 332 | pass |
