FS#67812 - Capture and summarize downloader errors

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Thursday, 03 September 2020, 00:59 GMT
Task Type Bug Report
Category Backend/Core
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

With the parallel downloader, we capture all error messages and report them at the end. If there is a bad mirror at the top of your mirror list, this can lead to many lines of output (particularly in the package download stage).

e.g.

$ pacman -Syy
:: Synchronizing package databases...
testing 18.7 KiB 9.09 KiB/s 00:02 [######################] 100%
core 132.9 KiB 67.1 KiB/s 00:02 [######################] 100%
extra 1670.0 KiB 567 KiB/s 00:03 [######################] 100%
community-testing 6.3 KiB 3.47 KiB/s 00:02 [######################] 100%
community 5.2 MiB 1514 KiB/s 00:03 [######################] 100%
error: failed retrieving file 'community.db' from allanmcrae.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from allanmcrae.com : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from allanmcrae.com : The requested URL returned error: 404
error: failed retrieving file 'community-testing.db' from allanmcrae.com : The requested URL returned error: 404
error: failed retrieving file 'testing.db' from allanmcrae.com : The requested URL returned error: 404
This task depends upon

Comment by Allan McRae (Allan) - Monday, 08 March 2021, 01:52 GMT
We have discussed making the error more generic. e.g.:

error: failed retrieving file(s) from example.com : The requested URL returned error: 404

And then making the list of errors unique when outputting.

Also need to think is "error" right here? It is only an error when file retrieves fail from all mirrors. Perhaps this should be a warning?

Loading...