summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-07-03 19:15:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-04 14:48:14 +0100
commit5d79175b87fe352c3f4d62a1e49df2a7052488d9 (patch)
treed3c582f5e881897171ab9f42db66f7d2d256945d
parent86aeee98cffdc7c2f19e732467a69103d52fe16a (diff)
downloadpoky-5d79175b87fe352c3f4d62a1e49df2a7052488d9.tar.gz
bitbake: Hob: fixed some variables not clean bug in detail page
[YOCTO #2679] (Bitbake rev: 73801f571e040dcdfeb15a15b9a484cbefaae70c) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index 07fc3a81e1..596fb851ec 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -232,7 +232,7 @@ class ImageDetailsPage (HobPage):
232 232
233 is_runnable = self.create_bottom_buttons(self.buttonlist, self.toggled_image) 233 is_runnable = self.create_bottom_buttons(self.buttonlist, self.toggled_image)
234 234
235 #if self.build_succeeded: 235 # Generated image files info
236 varlist = ["Name: ", "FileCreated: ", "Directory: "] 236 varlist = ["Name: ", "FileCreated: ", "Directory: "]
237 vallist = [] 237 vallist = []
238 238
@@ -428,7 +428,7 @@ class ImageDetailsPage (HobPage):
428 if fileitem['is_toggled']: 428 if fileitem['is_toggled']:
429 if fileitem['action_attr'] == 'run': 429 if fileitem['action_attr'] == 'run':
430 self.builder.runqemu_image(fileitem['name'], self.sel_kernel) 430 self.builder.runqemu_image(fileitem['name'], self.sel_kernel)
431 elif image_attr == 'deploy': 431 elif fileitem['action_attr'] == 'deploy':
432 self.builder.deploy_image(fileitem['name']) 432 self.builder.deploy_image(fileitem['name'])
433 433
434 def table_selected_cb(self, tbutton, image): 434 def table_selected_cb(self, tbutton, image):
@@ -445,14 +445,6 @@ class ImageDetailsPage (HobPage):
445 label = ((self.kernel_detail.get_children()[0]).get_children()[0]).get_children()[0] 445 label = ((self.kernel_detail.get_children()[0]).get_children()[0]).get_children()[0]
446 label.set_markup(markup) 446 label.set_markup(markup)
447 447
448 def row_activated_cb(self, table, model, path):
449 if not model:
450 return
451 iter = model.get_iter(path)
452 image_name = model[path][0]
453 if iter and model[path][2] == True:
454 self.builder.runqemu_image(image_name, self.sel_kernel)
455
456 def create_bottom_buttons(self, buttonlist, image_name): 448 def create_bottom_buttons(self, buttonlist, image_name):
457 # Create the buttons at the bottom 449 # Create the buttons at the bottom
458 created = False 450 created = False
@@ -536,7 +528,7 @@ class ImageDetailsPage (HobPage):
536 528
537 def deploy_button_clicked_cb(self, button): 529 def deploy_button_clicked_cb(self, button):
538 if self.toggled_image: 530 if self.toggled_image:
539 if self.build_succeeded or self.num_toggled > 1: 531 if self.num_toggled > 1:
540 self.set_sensitive(False) 532 self.set_sensitive(False)
541 self.show_builded_images_dialog(None, "Deploy image") 533 self.show_builded_images_dialog(None, "Deploy image")
542 self.set_sensitive(True) 534 self.set_sensitive(True)