diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobwidget.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index 28dc375da5..65de9df78f 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py | |||
@@ -155,9 +155,15 @@ class HobViewTable (gtk.VBox): | |||
155 | bin = binb.split(', ') | 155 | bin = binb.split(', ') |
156 | total_no = len(bin) | 156 | total_no = len(bin) |
157 | if total_no > 1 and bin[0] == "User Selected": | 157 | if total_no > 1 and bin[0] == "User Selected": |
158 | present_binb = bin[1] + ' (+' + str(total_no) + ')' | 158 | if total_no > 2: |
159 | present_binb = bin[1] + ' (+' + str(total_no - 1) + ')' | ||
160 | else: | ||
161 | present_binb = bin[1] | ||
159 | else: | 162 | else: |
160 | present_binb = bin[0] + ' (+' + str(total_no) + ')' | 163 | if total_no > 1: |
164 | present_binb = bin[0] + ' (+' + str(total_no - 1) + ')' | ||
165 | else: | ||
166 | present_binb = bin[0] | ||
161 | cell.set_property('text', present_binb) | 167 | cell.set_property('text', present_binb) |
162 | else: | 168 | else: |
163 | cell.set_property('text', "") | 169 | cell.set_property('text', "") |