[pacman-dev] [PATCH] RFC: Remove "duplicate" download error messages
Andrew Gregory
andrew.gregory.8 at gmail.com
Thu Mar 18 20:46:00 UTC 2021
On 03/14/21 at 09:40pm, Andrew Gregory wrote:
...
> What about actually removing a bad mirror instead of deduplicating the
> resulting messages? Maybe start using the next mirror for subsequent
> payloads after n failures or immediately for things like an
> unresolvable host?
Took a quick stab at a first draft of this on my dload-server-skip
branch. With the following config:
[core]
Server = http://allanmcrae1.com/
Server = http://allanmcrae1.com/
Server = http://allanmcrae.com/
Server = http://allanmcrae.com/
Server = http://allanmcrae.com/
Server = http://allanmcrae.com/
Include = /etc/pacman.d/mirrorlist
A failure limit of 3 gives the following output:
:: Synchronizing package databases...
core 129.9 KiB 135 KiB/s 00:01 [###################################] 100%
error: failed retrieving file 'core.db' from allanmcrae1.com : Could not resolve host: allanmcrae1.com
error: failed retrieving file 'core.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 'core.db' from allanmcrae.com : The requested URL returned error: 404
It keys the errors count off of the full server url, we might want to
switch to just hostname to avoid repeating errors across db-specific
servers. It also needs a warning/info message when it starts ignoring
a server.
apg
More information about the pacman-dev
mailing list