From: Richard Purdie Date: Mon, 2 Dec 2013 17:41:58 +0000 (+0000) Subject: bitbake: imagedetailspage: Fix crash with more than 15 layers X-Git-Tag: rev_ivi_2015_02_04~10171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a04805e1f0f81de419689dc43756ba1e778a7a2;p=scm%2Fbb%2Ftizen-distro.git 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 --- diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 4c86247..271635f 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/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