]> git.saurik.com Git - apt.git/commit
don't perform int<float in progress bar drawing
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 12 Aug 2016 07:07:59 +0000 (09:07 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 12 Aug 2016 09:12:04 +0000 (11:12 +0200)
commit1cb047079aa2c26a8159d100348b7e69a49bc117
tree9591f7e0900f87a04683de723090161d0d324d9a
parentecaae01f31878a70771f75046b3e00173ff397b5
don't perform int<float in progress bar drawing

Comparing floating numbers is always fun and in this instance a 9 < 9.0
is "somehow" true on hurd-i386 letting the tests fail by reporting that
too much progress achieved. A bit mysterious, but with some rework we
can use code which avoids dealing with the floats in this way entirely
and make our testcases happy.
apt-pkg/install-progress.cc
test/libapt/install_progress_test.cc