aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-01-07 15:19:15 +0100
committerFabian Groffen <grobian@gentoo.org>2019-01-11 11:14:22 +0100
commitcfa915d0d575379df4b9f17fd2db3594155861ca (patch)
tree8d9ff210dc53076cf8cc49c5f396f153ea71acf4 /lib/portage/tests/resolver
parentUpdates for portage-2.3.55 release (diff)
downloadportage-cfa915d0d575379df4b9f17fd2db3594155861ca.tar.gz
portage-cfa915d0d575379df4b9f17fd2db3594155861ca.tar.bz2
portage-cfa915d0d575379df4b9f17fd2db3594155861ca.zip
collision_protect: use dynamic report interval
The reporting of files remaining can look somewhat odd since the report interval is hardcoded to be per 1000 objects. Adjust this interval to be time based. This means that modern (fast) machines likely will never see the countdown messages at all. On slow setups the message will be informative that there is progress, albeit rather slowly. While at it, report percentage done. Output before this patch: * checking 6158 files for package collisions 5158 files remaining ... 4158 files remaining ... 3158 files remaining ... 2158 files remaining ... 1158 files remaining ... 158 files remaining ... Possible output after this patch on a slower machine: * checking 6158 files for package collisions 48% done, 3145 files remaining ... 96% done, 192 files remaining ... 100% done Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'lib/portage/tests/resolver')
0 files changed, 0 insertions, 0 deletions