diff options
author | Awais Belal <awais_belal@mentor.com> | 2018-08-26 15:33:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-28 10:32:08 +0100 |
commit | 215c18771248ab71149b85d4aabd3e12b6409556 (patch) | |
tree | 324630cb07132acb0b31f1621b8ba0b08bd354d2 /README.LSB | |
parent | 525efc3a025d1bf3b9f20cb4342141f2be0b2079 (diff) | |
download | poky-215c18771248ab71149b85d4aabd3e12b6409556.tar.gz |
bitbake: toaster/widgets.py: avoid divide by zero issues
There can be cases where the variables being used
to divide in build percentage expressions can be
zero. For example, a setup consisting of only local
repos will have repos_to_clone=0 and will generate
a divide by zero scenario.
Fix this by checking the divisor in such cases.
[YOCTO #12891]
(Bitbake rev: 679c70aa32d23e9247f8a68efcb579ad733af84b)
Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'README.LSB')
0 files changed, 0 insertions, 0 deletions