diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-02 17:41:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-02 17:43:22 +0000 |
commit | 35c25907a6d03cc64c42f1a95e15a794569c537d (patch) | |
tree | 4759c99f2bdaf4780ebe20ffcdbdc42c856ed705 /bitbake | |
parent | a67fde0ab1b225b547aa4c0792f78667e4e031d5 (diff) | |
download | poky-35c25907a6d03cc64c42f1a95e15a794569c537d.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: 4e65463886a2ef245b2f8974e82e9cb942af224b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 |
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 4c862474e9..271635fe11 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 |