FS#56468 - Duplicated output when using --noprogressbar

Attached to Project: Pacman
Opened by Earnestly (Earnest) - Sunday, 26 November 2017, 17:23 GMT
Last edited by Allan McRae (Allan) - Monday, 08 January 2018, 05:09 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Andrew Gregory (andrewgregory)
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version 5.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Note: This is using pacman built from git (v5.0.1-192-ge4f13e62)

Currently when using '--noprogressbar' each item that is downloaded is printed multiple times, including during both synchronisation and downloading phases, E.g.:

Mirror: Server = https://mirror.bytemark.co.uk/archlinux/$repo/os/$arch

% sudo pacman -Syy --noprogressbar
:: Synchronising package databases...
downloading earnestly.db...
downloading testing.db...
downloading testing.db...
downloading testing.db...
downloading testing.db...
downloading testing.db...
downloading core.db...
downloading core.db...
downloading core.db...
downloading core.db...
downloading core.db...
downloading core.db...
downloading core.db...
downloading extra.db...
downloading extra.db...
downloading extra.db...
downloading extra.db...
downloading extra.db...
downloading extra.db...
downloading extra.db...
[...]

Additionally when using https://github.com/andrewgregory/pacman#branch=debug/dlcb to see the callbacks, they seem to trigger multiple times, E.g:

downloading testing.db...
curl callback called for 'testing.db' with now: 16384 total: 61585
calling frontend callback with now: 0 total: 0
curl callback called for 'testing.db' with now: 16384 total: 61585
calling frontend callback with now: 0 total: 0
curl callback called for 'testing.db' with now: 16384 total: 61585
calling frontend callback with now: 0 total: 0
curl callback called for 'testing.db' with now: 16384 total: 61585
calling frontend callback with now: 0 total: 0

Full output here: https://ptpb.pw/p1ky
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 08 January 2018, 05:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 59bb21fce369e

Loading...