FS#72259 - pacman feature request, automatically delete *.db and its *.sig, when they are corrupted

Attached to Project: Pacman
Opened by Evan Greenup (evgrup) - Tuesday, 28 September 2021, 01:39 GMT
Last edited by Allan McRae (Allan) - Saturday, 02 September 2023, 12:01 GMT
Task Type Feature Request
Category Packages
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 1
Private No

Details

Description:

Some times due to network issue,

got GPGME error.

failed to synchronize all database (invalid or corrupted database (PGP signature)).

according to https://forum.manjaro.org/t/db-sig-corrupted-by-routers/83084

Even if it is a Manjaro forum, but it is still suitable for archlinux pacman.

It would be a good idea, to let pacman automatically remove the tree in /var/lib/pacman/sync/ and retry `pacman -Syyu`.

This can make pacman more robust.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 02 September 2023, 12:01 GMT
Reason for closing:  None
Comment by morganamilo (morganamilo) - Tuesday, 05 October 2021, 20:00 GMT
Pacman already forces a re download with -Sy if the repo is invalid.
Maybe there can be a prompt for this but auto deleting I'm against.
Comment by Allan McRae (Allan) - Saturday, 02 September 2023, 12:01 GMT
There is another bug tracking not updating database files unless the signatures are verified. That is a better solution. Closing

Loading...