[pacman-dev] [PATCH v3 1/2] only use effective url for urls containing .db or .pkg
allan at archlinux.org
Fri Sep 3 12:16:26 UTC 2021
On 24/6/21 10:13 pm, morganamilo wrote:
> Github and other sites redirect their downloads to a cdn. So the
> download http://foo.org/myrepo.db may redirect to something like
> This then causes pacman to try and download the sig as
> https://cdn.foo.org/83749327439.sig which is incorrect. In this case
> pacman should append .sig to the original url.
> However urls like https://archlinux.org/packages/community/x86_64/0ad/download/
> Redirect to the mirror, so .sig has to appended after the redirects and
> not before.
> So we decide if we should append .sig on the original or effective url
> based on if the effective url (minus the query part) has .db or .pkg in it.
> Fixes FS#71148
More information about the pacman-dev