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 > https://cdn.foo.org/83749327439. > > 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 >
Pulled. Thanks, Allan
