Skip to contentSkip to conversation

bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly

PATCH Applied Cristian Iorga 2 participants 2 messages Oct 16, 2012 – Oct 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/ui/crumbs/hobwidget.py            |   10 ++++++++--
 bitbake/lib/bb/ui/crumbs/packageselectionpage.py |    2 +-
 bitbake/lib/bb/ui/crumbs/recipeselectionpage.py  |    2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)
bitbake/lib/bb/ui/crumbs/hobwidget.py +8 -2
index 28dc375..65de9df 100644
@@ -155,9 +155,15 @@ class HobViewTable (gtk.VBox):
             bin = binb.split(', ')
             total_no = len(bin)
             if total_no > 1 and bin[0] == "User Selected":
-                present_binb = bin[1] + ' (+' + str(total_no) + ')'
+                if total_no > 2:
+                    present_binb = bin[1] + ' (+' + str(total_no - 1) + ')'
+                else:
+                    present_binb = bin[1]
             else:
-                present_binb = bin[0] + ' (+' + str(total_no) + ')'
+                if total_no > 1:
+                    present_binb = bin[0] + ' (+' + str(total_no - 1) + ')'
+                else:
+                    present_binb = bin[0]
             cell.set_property('text', present_binb)
         else:
             cell.set_property('text', "")
bitbake/lib/bb/ui/crumbs/packageselectionpage.py +1 -1
index 6792fe0..d05b4a2 100755
@@ -52,7 +52,7 @@ class PackageSelectionPage (HobPage):
                        'col_max'  : 300,
                        'expand'   : 'True'
                       }, {
-                       'col_name' : 'Brought in by',
+                       'col_name' : 'Brought in by (+others)',
                        'col_id'   : PackageListModel.COL_BINB,
                        'col_style': 'binb',
                        'col_min'  : 100,
bitbake/lib/bb/ui/crumbs/recipeselectionpage.py +1 -1
index 8655c29..27872ca 100755
@@ -52,7 +52,7 @@ class RecipeSelectionPage (HobPage):
                        'col_max'  : 300,
                        'expand'   : 'True'
                       }, {
-                       'col_name' : 'Brought in by',
+                       'col_name' : 'Brought in by (+others)',
                        'col_id'   : RecipeListModel.COL_BINB,
                        'col_style': 'binb',
                        'col_min'  : 100,
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 4 lines · Cristian Iorga

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.

Quoted 8 lines

Fixes [YOCTO #2195].

---
 bitbake/lib/bb/ui/crumbs/hobwidget.py            |   10 ++++++++--
 bitbake/lib/bb/ui/crumbs/packageselectionpage.py |    2 +-
 bitbake/lib/bb/ui/crumbs/recipeselectionpage.py  |    2 +-
 3 files changed, 10 insertions(+), 4 deletions(-)

Merged to master, thanks.

Richard