FS#71737 - pacman ignores content of /var/cache/pacman/pkg
Attached to Project:
Pacman
Opened by Ruslan Garipov (ruslangaripov) - Thursday, 05 August 2021, 10:17 GMT
Last edited by morganamilo (morganamilo) - Sunday, 15 August 2021, 13:29 GMT
Opened by Ruslan Garipov (ruslangaripov) - Thursday, 05 August 2021, 10:17 GMT
Last edited by morganamilo (morganamilo) - Sunday, 15 August 2021, 13:29 GMT
|
Details
Description:
pacman 6.0.0-5 ignores content of /var/cache/pacman/pkg. I had a system which was not updated since May, 2021. Yesterday I have upgraded the system without any error. Today I had to reinstall gitlab package and run: pacman -S gitlab gitlab-whatever-version-db-has.zst file exists in /var/cache/pacman/pkg, but "pacman -S gitlab" tries to download the file again. The same is applied to other packages. If I run pacman -U /var/cache/pacman/pkg/gitlab-whatever this REinstall the package with the same version with error. Because the system does not have Internet connection, I am failing to reinstall a package using "pacman -S <package>". By the way, MSYS2 with the same pacman (6.0.0-5) has the same issue. /etc/pacman.conf has default settings, and does not change the CacheDir. Additional info: pacman 6.0.0-5 default /etc/pacman.conf Steps to reproduce: Please see description section. |
This task depends upon
Closed by morganamilo (morganamilo)
Sunday, 15 August 2021, 13:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Sigs weren't in cache
Sunday, 15 August 2021, 13:29 GMT
Reason for closing: Not a bug
Additional comments about closing: Sigs weren't in cache
No, no. pacman -U succeeded. Because it does not download anything from the Internet, it succeeds. My problem is that pacman -S tries to download something from the Internet.
I use "pacman -Suup" on my offline machines, and then "fetch" hyperlink lists on PC having the Internet connection. Since the list generated by "pacman -Suup" contains URLs for packages only, and not their signatures, I've ended up with *.zst files only.
Interesting, if this patch was committed by you, Allan, **one year ago**, why I did not have this problem with .SIG files on May, 2021, when I successfully updated my systems using "pacman -Suu" from local cache with package files only? pacman is not distributed from the master branch? But I see no release/6.0.0 branch in the repository...
In any way, may I assume that a package's signature file has the same URL as the package does, but with .sig appended to the end of URL?
Thanks, Allan! And sorry for bothering you. But without your hint I would never find the commit.