Allan McRae pushed to branch master at Pacman / Pacman


Commits:
aff12189 by morganamilo at 2023-09-30T13:28:31+00:00
libalpm: check filecache_find return and log errors

Some user had erros while updating their system.

:: Proceed with installation? [Y/n]
:: Retrieving packages...
checking keyring...
checking package integrity...
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

The issue was filecache_find returning null and alpm passing that null
path to check validity. How this happened I have no idea. It may be
something to do with the user's cachedir being a network drive.

Also warn when the file exists but it is not a regular file or can not
be opened.

- - - - -


2 changed files:

- lib/libalpm/sync.c
- lib/libalpm/util.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/aff12189d85d562c39e37084d28a7859566ec610

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/aff12189d85d562c39e37084d28a7859566ec610
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to