diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builddetailspage.py | 2 | ||||
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builder.py | 21 | ||||
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 |
3 files changed, 4 insertions, 21 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index 171a7a68ed..1899956469 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py | |||
@@ -423,7 +423,7 @@ class BuildDetailsPage (HobPage): | |||
423 | if "recipes" in action: | 423 | if "recipes" in action: |
424 | self.builder.show_recipes() | 424 | self.builder.show_recipes() |
425 | elif "packages" in action: | 425 | elif "packages" in action: |
426 | self.builder.show_packages(ask=False) | 426 | self.builder.show_packages() |
427 | elif "image" in action: | 427 | elif "image" in action: |
428 | self.builder.show_configuration() | 428 | self.builder.show_configuration() |
429 | 429 | ||
diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py index ab6750b741..de1458cbc4 100755 --- a/bitbake/lib/bb/ui/crumbs/builder.py +++ b/bitbake/lib/bb/ui/crumbs/builder.py | |||
@@ -1384,25 +1384,8 @@ class Builder(gtk.Window): | |||
1384 | dialog.run() | 1384 | dialog.run() |
1385 | dialog.destroy() | 1385 | dialog.destroy() |
1386 | 1386 | ||
1387 | def show_packages(self, ask=True): | 1387 | def show_packages(self): |
1388 | _, selected_recipes = self.recipe_model.get_selected_recipes() | 1388 | self.switch_page(self.PACKAGE_SELECTION) |
1389 | if selected_recipes and ask: | ||
1390 | lbl = "<b>Package list may be incomplete!</b>\nDo you want to build selected recipes" | ||
1391 | lbl = lbl + " to get a full list or just view the existing packages?" | ||
1392 | dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_INFO) | ||
1393 | button = dialog.add_button("View packages", gtk.RESPONSE_NO) | ||
1394 | HobAltButton.style_button(button) | ||
1395 | button = dialog.add_button("Build packages", gtk.RESPONSE_YES) | ||
1396 | HobButton.style_button(button) | ||
1397 | dialog.set_default_response(gtk.RESPONSE_YES) | ||
1398 | response = dialog.run() | ||
1399 | dialog.destroy() | ||
1400 | if response == gtk.RESPONSE_YES: | ||
1401 | self.generate_packages_async(True) | ||
1402 | else: | ||
1403 | self.switch_page(self.PACKAGE_SELECTION) | ||
1404 | else: | ||
1405 | self.switch_page(self.PACKAGE_SELECTION) | ||
1406 | 1389 | ||
1407 | def show_recipes(self): | 1390 | def show_recipes(self): |
1408 | self.switch_page(self.RECIPE_SELECTION) | 1391 | self.switch_page(self.RECIPE_SELECTION) |
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index b5d9660218..4c862474e9 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -655,7 +655,7 @@ class ImageDetailsPage (HobPage): | |||
655 | self.builder.show_configuration() | 655 | self.builder.show_configuration() |
656 | 656 | ||
657 | def edit_packages_button_clicked_cb(self, button): | 657 | def edit_packages_button_clicked_cb(self, button): |
658 | self.builder.show_packages(ask=False) | 658 | self.builder.show_packages() |
659 | 659 | ||
660 | def my_images_button_clicked_cb(self, button): | 660 | def my_images_button_clicked_cb(self, button): |
661 | self.builder.show_load_my_images_dialog() | 661 | self.builder.show_load_my_images_dialog() |