Hob: fixed the issue about the 'run image' page should have the primary bug

issues: when build a image for atom-pc, the output does not include live
image, and 'Save as template' should become the primary action on the screen

[YOCTO 2326]

(Bitbake rev: e9516c7e14d782b943cc6e6a2e5e2111edf03d8c)

Signed-off-by: Liming An <limingx.l.an@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Liming An 2012-05-21 22:41:24 +08:00 committed by Richard Purdie
parent 3ee1cfab7d
commit 644b30adfb
1 changed files with 8 additions and 6 deletions

View File

@ -202,7 +202,7 @@ class ImageDetailsPage (HobPage):
# Name
self.image_store.clear()
default_toggled = False
default_toggled = ""
default_image_size = 0
num_toggled = 0
i = 0
@ -212,18 +212,20 @@ class ImageDetailsPage (HobPage):
or self.test_deployable(image_name)
if not default_toggled:
default_toggled = is_toggled
if i == (len(image_names) - 1):
default_toggled = True
self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, default_toggled)
if default_toggled:
is_toggled = True
self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, is_toggled)
if is_toggled:
default_image_size = image_size
self.create_bottom_buttons(self.buttonlist, image_name)
default_toggled = image_name
else:
self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, False)
i = i + 1
num_toggled += is_toggled
self.create_bottom_buttons(self.buttonlist, default_toggled)
if build_succeeded and (num_toggled < 2):
varlist = ["Name: ", "Directory: "]
vallist = []