summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-18 14:18:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-23 10:00:33 -0700
commit989ce0cf55818e65511d1d984f3f53f8c386a9c1 (patch)
tree3ab232236f7f351dd6dfd5cfc88f72454fae504b /bitbake
parentb6009b295267cb991eb5efbe863ed4e4c99fb715 (diff)
downloadpoky-989ce0cf55818e65511d1d984f3f53f8c386a9c1.tar.gz
hob: don't try and build if user selects Bake with no selections made
If the user hasn't made any selections inform them that they need to do so before clicking Bake. Fixes [YOCTO #1384] (Bitbake rev: e176dcf637da2d0105a4361a46d5df5238e3b8ce) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/hob.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index b0a98cbd1d..0230ddaea0 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -405,7 +405,19 @@ class MainWindow (gtk.Window):
405 build_image = True 405 build_image = True
406 406
407 rep = self.model.get_build_rep() 407 rep = self.model.get_build_rep()
408 if not rep.base_image: 408
409 # If no base image and no user selected packages don't build anything
410 if not self.selected_image and not len(rep.userpkgs):
411 lbl = "<b>No selections made</b>\nYou have not made any selections"
412 lbl = lbl + " so there isn't anything to bake at this time."
413 dialog = CrumbsDialog(self, lbl, gtk.STOCK_DIALOG_INFO)
414 dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
415 dialog.run()
416 dialog.destroy()
417 return
418 # Else if no base image, ask whether to just build packages or whether
419 # to build a rootfs with the selected packages in
420 elif not self.selected_image:
409 lbl = "<b>Build empty image or only packages?</b>\nA base image" 421 lbl = "<b>Build empty image or only packages?</b>\nA base image"
410 lbl = lbl + " has not been selected.\n\'Empty image' will build" 422 lbl = lbl + " has not been selected.\n\'Empty image' will build"
411 lbl = lbl + " an image with only the selected packages as its" 423 lbl = lbl + " an image with only the selected packages as its"