[pacman-dev] [PATCH v2] pacman: add file checksum validation against mtree

Allan McRae allan at archlinux.org
Tue Jan 5 01:06:57 UTC 2021


On 5/1/21 10:56 am, Emil Velikov via pacman-dev wrote:
> With libarchive v3.5.0 we have API to fetch the digest from the mtree.
> Use that to validate if the installed files are modified or not.
> 
> As always, a modified backup file will trigger a warning but will not
> result in an actual failure.
> 
> v2: Produce separate messages for failed to calc checksum vs missing
> checksum information in mtree
> 

Just as an FYI (I can edit these as I apply), v2 messages should go...

> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---

under these lines so that they do not get included in the commit message.

>  src/pacman/check.c | 74 +++++++++++++++++++++++++++++++++++++++++-----
>  1 file changed, 67 insertions(+), 7 deletions(-)
> 
Hopefully I can get through these patches in the next few days.

A


More information about the pacman-dev mailing list