summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-12-05 22:51:38 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-05 22:51:38 +0000
commit1a0c39e05067aa1b3c70de08380b8032227bf690 (patch)
tree62ee13abafdab1fd5d51e0dc41b9638e1c675070
parenta80a839dc9a2f21e2295cef46c6f7fc04a52d671 (diff)
downloadopenembedded-core-1a0c39e05067aa1b3c70de08380b8032227bf690.tar.gz
bitbake/utils.py: Ensure the last lines of functions are printed in tracebacks
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index c2e6ff08ed..ed28f86c4b 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -304,9 +304,12 @@ def _print_trace(body, line):
"""
# print the environment of the method
min_line = max(1, line-4)
- max_line = min(line + 4, len(body)-1)
+ max_line = min(line + 4, len(body))
for i in range(min_line, max_line + 1):
- bb.msg.error(bb.msg.domain.Util, "\t%.4d:%s" % (i, body[i-1]) )
+ if line == i:
+ bb.msg.error(bb.msg.domain.Util, " *** %.4d:%s" % (i, body[i-1]) )
+ else:
+ bb.msg.error(bb.msg.domain.Util, " %.4d:%s" % (i, body[i-1]) )
def better_compile(text, file, realfile, mode = "exec"):
enQi/signing-keys OpenEmbedded Core user contribution treesGrokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/binconfig.bbclass
blob: 537229414260dbc2160496b5ee062a8884af7287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63