summaryrefslogtreecommitdiffstats
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:04:11 +0000
commitae420d37fd57a567cf3d2d8096cc9aa28ed01385 (patch)
treea17b29adc5c69b4c6ed4f358f31784b07b6df49e
parent22e6b1c4c4afb27057689bbc94cbdf1f19f93e3d (diff)
downloadbitbake-ae420d37fd57a567cf3d2d8096cc9aa28ed01385.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/ui/crumbs/imagedetailspage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/imagedetailspage.py b/lib/bb/ui/crumbs/imagedetailspage.py
index b5d966021..ac82e272f 100755
--- a/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/lib/bb/ui/crumbs/imagedetailspage.py
@@ -355,9 +355,9 @@ class ImageDetailsPage (HobPage):
vallist.append(base_image)
i = 0
for layer in layers:
- varlist.append(" - ")
if i > layer_num_limit:
break
+ varlist.append(" - ")
i += 1
vallist.append("")
i = 0