FS#49416 - Inconsistent output for download status in Pacman

Attached to Project: Pacman
Opened by Renato Silva (renatosilva) - Friday, 20 May 2016, 15:03 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 December 2022, 08:27 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, an empty progress bar may get printed even when download is not actually performed. This happens because the callback responsible for download progress assumes the transferred data will eventually increase. However this is not certain, for example odd servers may cause the curl library to activate the download callback without any byte transfer ever taking place. Also, because the callback may be called multiple times while there is still no transferred data, --noprogressbar may print repeated status messages.

The emty progress bar can be reproduced for example by refreshing pacman repositories from Bintray, which seems to confuse the curl library by returning unexpected HTTP status codes. The repeated status messages can be reproduced by refreshing databases with --noprogressbar. Attached is a patch addressing both issues, along with sample outputs.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 04 December 2022, 08:27 GMT
Reason for closing:  None
Additional comments about closing:  I'm fairly certain this is not valid any more. Request re-opening if still affected.
Comment by Renato Silva (renatosilva) - Friday, 20 May 2016, 16:45 GMT
Detected weirdness introduced by patch. How to fix?
Comment by Renato Silva (renatosilva) - Friday, 20 May 2016, 21:12 GMT
Latest patch version with fix for the above issue.

Loading...