summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-05-21 22:41:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-23 11:33:18 +0100
commit644b30adfb8fb158a253712033f717aadf6f2c68 (patch)
tree8bbe60a112dab67ea71f21c0cd56b2fc12baa378 /bitbake/lib/bb
parent3ee1cfab7dab1d451f807496c860e1d92906c903 (diff)
downloadpoky-644b30adfb8fb158a253712033f717aadf6f2c68.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index f5175445b5..153837611f 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -202,7 +202,7 @@ class ImageDetailsPage (HobPage):
202 202
203 # Name 203 # Name
204 self.image_store.clear() 204 self.image_store.clear()
205 default_toggled = False 205 default_toggled = ""
206 default_image_size = 0 206 default_image_size = 0
207 num_toggled = 0 207 num_toggled = 0
208 i = 0 208 i = 0
@@ -212,18 +212,20 @@ class ImageDetailsPage (HobPage):
212 or self.test_deployable(image_name) 212 or self.test_deployable(image_name)
213 213
214 if not default_toggled: 214 if not default_toggled:
215 default_toggled = is_toggled
216 if i == (len(image_names) - 1): 215 if i == (len(image_names) - 1):
217 default_toggled = True 216 is_toggled = True
218 self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, default_toggled) 217 self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, is_toggled)
219 if default_toggled: 218 if is_toggled:
220 default_image_size = image_size 219 default_image_size = image_size
221 self.create_bottom_buttons(self.buttonlist, image_name) 220 default_toggled = image_name
221
222 else: 222 else:
223 self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, False) 223 self.image_store.set(self.image_store.append(), 0, image_name, 1, image_size, 2, False)
224 i = i + 1 224 i = i + 1
225 num_toggled += is_toggled 225 num_toggled += is_toggled
226 226
227 self.create_bottom_buttons(self.buttonlist, default_toggled)
228
227 if build_succeeded and (num_toggled < 2): 229 if build_succeeded and (num_toggled < 2):
228 varlist = ["Name: ", "Directory: "] 230 varlist = ["Name: ", "Directory: "]
229 vallist = [] 231 vallist = []