diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-09 15:09:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:32:46 +0000 |
commit | 6ba69b43831cf1e0968c64dc977056d860e70ba4 (patch) | |
tree | 7cd9085d6b43e91e29c4b7bfa07d4578a0860bf5 /bitbake/lib/bb/utils.py | |
parent | f8a44b160d5970414821513ad839c6e20456943d (diff) | |
download | poky-6ba69b43831cf1e0968c64dc977056d860e70ba4.tar.gz |
bitbake: utils: Drop datastore function inspection during exception
When we use functions from the data store, they now have correct line number
and filename information. This function would attempt to correct line numbers
which doesn't need correcting, leading to misleading messages to the user.
Therefore remove this code as being obsoleted.
(Bitbake rev: 918bec86bc8ee94feb82380ff410d9fdcbe9e720)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 5af80f5c79..82579b8a15 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -363,15 +363,6 @@ def _print_exception(t, value, tb, realfile, text, context): | |||
363 | error.extend(_print_trace(text, tbextract[level+1][1])) | 363 | error.extend(_print_trace(text, tbextract[level+1][1])) |
364 | except: | 364 | except: |
365 | error.append(tbformat[level+1]) | 365 | error.append(tbformat[level+1]) |
366 | elif "d" in context and tbextract[level+1][2]: | ||
367 | # Try and find the code in the datastore based on the functionname | ||
368 | d = context["d"] | ||
369 | functionname = tbextract[level+1][2] | ||
370 | text = d.getVar(functionname, True) | ||
371 | if text: | ||
372 | error.extend(_print_trace(text.split('\n'), tbextract[level+1][1])) | ||
373 | else: | ||
374 | error.append(tbformat[level+1]) | ||
375 | else: | 366 | else: |
376 | error.append(tbformat[level+1]) | 367 | error.append(tbformat[level+1]) |
377 | nexttb = tb.tb_next | 368 | nexttb = tb.tb_next |