diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 28bdadb45e..7d493eb402 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -38,7 +38,7 @@ def taskname_from_tid(tid): | |||
38 | return tid.rsplit(":", 1)[1] | 38 | return tid.rsplit(":", 1)[1] |
39 | 39 | ||
40 | def mc_from_tid(tid): | 40 | def mc_from_tid(tid): |
41 | if tid.startswith('mc:'): | 41 | if tid.startswith('mc:') and tid.count(':') >= 2: |
42 | return tid.split(':')[1] | 42 | return tid.split(':')[1] |
43 | return "" | 43 | return "" |
44 | 44 | ||
@@ -47,13 +47,13 @@ def split_tid(tid): | |||
47 | return (mc, fn, taskname) | 47 | return (mc, fn, taskname) |
48 | 48 | ||
49 | def split_mc(n): | 49 | def split_mc(n): |
50 | if n.startswith("mc:"): | 50 | if n.startswith("mc:") and n.count(':') >= 2: |
51 | _, mc, n = n.split(":", 2) | 51 | _, mc, n = n.split(":", 2) |
52 | return (mc, n) | 52 | return (mc, n) |
53 | return ('', n) | 53 | return ('', n) |
54 | 54 | ||
55 | def split_tid_mcfn(tid): | 55 | def split_tid_mcfn(tid): |
56 | if tid.startswith('mc:'): | 56 | if tid.startswith('mc:') and tid.count(':') >= 2: |
57 | elems = tid.split(':') | 57 | elems = tid.split(':') |
58 | mc = elems[1] | 58 | mc = elems[1] |
59 | fn = ":".join(elems[2:-1]) | 59 | fn = ":".join(elems[2:-1]) |