]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: knotty: ensure progress bar output is accounted for in display
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 23 Sep 2016 09:14:32 +0000 (21:14 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 14:01:56 +0000 (15:01 +0100)
commit9173b11f2f76797c3ee8b1e2ebed21c550323136
treece38f3ca6df9c216e5af797fac9e40dea6c31014
parent0d76de85bd2fa8fc6b0a3a5a65f2817a5d0b2186
bitbake: knotty: ensure progress bar output is accounted for in display

When calculating how many lines we'd printed we weren't properly taking
the progress bars into account, with the result that sometimes if the
last line printed on the terminal wrapped to the next line (which is
possible) we backed up less lines than we should have.

Additionally, we should always print a newline after updating the
progress bar - there's no need to check if there wasn't output (there
always will be courtesy of our overridden _need_update()) and we now
allow the line to wrap so we don't need to check the other condition
either.

Hopefully this will fix [YOCTO #10046].

(Bitbake rev: 326d18d96faf02675ba34ad3c3a20cd424b39b91)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/knotty.py