summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-02 17:41:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-02 13:08:48 +0000
commit9cea2e49d025a5493b43f826b69deca09bc9f400 (patch)
tree69b155060c489a164d10089a718275bb1d483a35 /bitbake
parent564c687c2a2b90f277f444eed298b6defc51c467 (diff)
downloadpoky-9cea2e49d025a5493b43f826b69deca09bc9f400.tar.gz
bitbake: imagedetailspage: Fix crash with more than 15 layers
If you had more than 15 layers the system would crash since one more value is added to one array than the other. This fixes the code so equal numbers of values are added to the arrays and hence doesn't crash when many layers are enabled. (Bitbake rev: ae420d37fd57a567cf3d2d8096cc9aa28ed01385) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index b5d9660218..ac82e272f6 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -355,9 +355,9 @@ class ImageDetailsPage (HobPage):
355 vallist.append(base_image) 355 vallist.append(base_image)
356 i = 0 356 i = 0
357 for layer in layers: 357 for layer in layers:
358 varlist.append(" - ")
359 if i > layer_num_limit: 358 if i > layer_num_limit:
360 break 359 break
360 varlist.append(" - ")
361 i += 1 361 i += 1
362 vallist.append("") 362 vallist.append("")
363 i = 0 363 i = 0