diff options
author | Andrey Yurovsky <yurovsky@gmail.com> | 2017-11-27 19:37:07 -0800 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-11-29 21:36:34 +0100 |
commit | 88af7d330dec7b6386a9994d8e53900033d85903 (patch) | |
tree | f812cfe2341bde79062e090084736304b72c16e0 /package/bash/bash44-001.patch | |
parent | 86ad37b948b5dd1845ef7e0a3620a0e9c5820559 (diff) | |
download | buildroot-88af7d330dec7b6386a9994d8e53900033d85903.tar.gz buildroot-88af7d330dec7b6386a9994d8e53900033d85903.zip |
support/scripts/size-stats: avoid divide-by-zero
Some packages (ex: skeleton-init-systemd) have a zero size so we cannot
divide by the package size. In that case make their percent zero
explicitly and avoid a ZeroDivisionError exception.
Signed-off-by: Andrey Yurovsky <yurovsky@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/bash/bash44-001.patch')
0 files changed, 0 insertions, 0 deletions