summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-10-16 11:52:38 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-24 21:13:07 +0100
commit4a3b0d7287ba7ce223021d33895bf5c953f1e4dc (patch)
tree6b22f5dc4d66173d15e2c02fcf399f6d48798a68 /bitbake/lib/bb/ui/crumbs/hobwidget.py
parentb3374dbfd01ea5c962625781b6b9ce19829f3d5e (diff)
downloadpoky-4a3b0d7287ba7ce223021d33895bf5c953f1e4dc.tar.gz
bitbake: bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly
In "Edit Recipes" and "Edit packages" pages, the "Brought in by" column is displayed correctly, with the right number of additional packages and a proper title. Fixes [YOCTO #2195]. (Bitbake rev: 4d1d3e5a54eb718e2eee02f734d929f15ccf99ce) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py10
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', "")