diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-04-01 20:14:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-05 14:00:26 +0100 |
commit | c15d4a2ddef8b452b03209ccb207f767ae93af39 (patch) | |
tree | 9b93957f074dfea05ead5b5404d7c49f08053d7e /bitbake/lib/bb/ui/crumbs/hoblistmodel.py | |
parent | 7b560745f23d862cc3e48748b56bc8ce4ce84f72 (diff) | |
download | poky-c15d4a2ddef8b452b03209ccb207f767ae93af39.tar.gz |
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 <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 17 |
1 files changed, 17 insertions, 0 deletions
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): | |||
342 | self.selection_change_notification() | 342 | self.selection_change_notification() |
343 | return left | 343 | return left |
344 | 344 | ||
345 | def get_user_selected_packages(self): | ||
346 | packagelist = [] | ||
347 | |||
348 | it = self.get_iter_first() | ||
349 | while it: | ||
350 | child_it = self.iter_children(it) | ||
351 | while child_it: | ||
352 | if self.get_value(child_it, self.COL_INC): | ||
353 | binb = self.get_value(child_it, self.COL_BINB) | ||
354 | if not binb or binb == "User Selected": | ||
355 | name = self.get_value(child_it, self.COL_NAME) | ||
356 | packagelist.append(name) | ||
357 | child_it = self.iter_next(child_it) | ||
358 | it = self.iter_next(it) | ||
359 | |||
360 | return packagelist | ||
361 | |||
345 | def get_selected_packages(self): | 362 | def get_selected_packages(self): |
346 | packagelist = [] | 363 | packagelist = [] |
347 | 364 | ||