[pacman-dev] [PATCH v2] libalpm: look for up to date file anywhere in cache

Allan McRae allan at archlinux.org
Fri Sep 3 12:31:43 UTC 2021


On 26/6/21 3:45 am, morganamilo wrote:
> Currently when a package is in a secondary cachedir and there is no sig
> file, the downloader redownloads the whole file into the primary
> cachedir.
> 
> So lets check all cachedirs for an up to date file.
> 
> Fixes FS#71109
> 
> ---
> 
> v2: ensure .sig is downlaoded to same cachedir as the package


As far as I can see, this does not ensure that all cache directories are
writable before attempting to download the signature file alongside the
package file.

I am going to make a declaration that this "issue" is a transitional
one.  Once packages are downloaded with pacman-6.0+, they will have the
signature file and this issue disappears.  A "pacman -Scc" would "fix"
the issue.

Perhaps repos that do not have signatures and are configured with
"SigLevel = Optional" still have an issue.


In any case, I am pushing this beyond pacman-6.0.1.

Allan


More information about the pacman-dev mailing list