From c15d4a2ddef8b452b03209ccb207f767ae93af39 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Sun, 1 Apr 2012 20:14:18 +0800 Subject: Hob: fix IMAGE_INSTALL setting while save template If save every selected package into IMAGE_INSTALL field, and then build the saved bb file by bitbake command line, it will report errors since some packages could not be found since they are dynamically generated. With this commit, Hob will only save those packages into the IMAGE_INSTALL variable which are brought in by user. (Bitbake rev: 6c970d07422bb9a8fcf339315587cfc9b207a44e) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py') diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py index d4cae43892..52abf00eb0 100644 --- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py @@ -342,6 +342,23 @@ class PackageListModel(gtk.TreeStore): self.selection_change_notification() return left + def get_user_selected_packages(self): + packagelist = [] + + it = self.get_iter_first() + while it: + child_it = self.iter_children(it) + while child_it: + if self.get_value(child_it, self.COL_INC): + binb = self.get_value(child_it, self.COL_BINB) + if not binb or binb == "User Selected": + name = self.get_value(child_it, self.COL_NAME) + packagelist.append(name) + child_it = self.iter_next(child_it) + it = self.iter_next(it) + + return packagelist + def get_selected_packages(self): packagelist = [] -- cgit v1.2.3-54-g00ecf