Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#33508 - [pacman] pacman -U and "Download From Mirror" link

Attached to Project: Pacman
Opened by Christian Hesse (eworm) - Tuesday, 22 January 2013, 09:29 GMT
Last edited by Allan McRae (Allan) - Tuesday, 29 January 2013, 03:48 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Package info on page https://www.archlinux.org/packages/ has a link "Download From Mirror". Trying to install packages from this link with 'pacman -U' fails for me:

root@leda ~ # pacman -U https://www.archlinux.org/packages/testing/x86_64/glibc/download/
alpmtmp.OM0ZU2 7,7 MiB 1652K/s 00:05 [--------------------------------------------] 100%
error: failed retrieving file 'alpmtmp.3bTvA9' from www.archlinux.org : The requested URL returned error: 404 NOT FOUND
warning: failed to download https://www.archlinux.org/packages/testing/x86_64/glibc/download/.sig
loading packages...
error: '/var/cache/pacman/pkg/glibc-2.17-2-x86_64.pkg.tar.xz': invalid or corrupted package (PGP signature)

I would expect this to work, though I am not sure if this should be fixed in pacman or on the website. We have two options:

1. pacman gets the redirect URL from website, then downloads the package. The suffix '.sig' should be appended to the redirected URL to successfully download the signature.
2. The website should redirect to the correct signature URL as well, so pacman does not have to care.

I hope there is no reason to mark this INVALID/WONTFIX. ;)
(In case of option two this is wrong place to report, so feel free to change category.)
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 29 January 2013, 03:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 27067b13
Comment by Dave Reisner (falconindy) - Tuesday, 22 January 2013, 15:42 GMT
Sure, easy enough to pass back the effective url. I have something locally to fix this but it probably needs more testing.

Loading...