]> git.saurik.com Git - apt.git/commit
force fancy progressbar redraw on window size change
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Apr 2014 15:12:09 +0000 (17:12 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Apr 2014 15:12:09 +0000 (17:12 +0200)
commit76bd63e2dc6ac5aaaf7f2cc98c2a83ab88ccc46c
treea313d790f914d36b6707f72f6995e06c015b29a3
parentcbc9ec23b0fb551f20f4fd8ca46d98f59b5666bc
force fancy progressbar redraw on window size change

We always reacted on the size change, but the bar is only redraw if the
precentage changes, which can take quiet a while in big upgrades, so
with a bit of refactoring we can now call for a redraw immediate to fix
this.

This refactor also helps in avoiding obscure pitfalls clangs static
analyser was complaining about (namely failure of ioctl resulting in
garbage values in the struct).
apt-pkg/install-progress.cc
apt-pkg/install-progress.h