andrewgregory / pacutils

Helper library for libalpm based programs.
MIT License
107 stars 17 forks source link

paccheck does not report an altered file as altered #59

Closed Volker-Weissmann closed 2 years ago

Volker-Weissmann commented 2 years ago

Not sure if this is a bug, but I think it is

$ paccheck --sha256sum librsvg                                      
librsvg: all files match mtree sha256sums

$ sha256sum /usr/lib/librsvg-2.so.2
2934e9f427536caa4a0c8aa9959f45369d88ea7b71b932e418661f826c779937  /usr/lib/librsvg-2.so.2

$ sha256sum /home/volker/Downloads/librsvg-2\ 2.54.4-1-x86_64.pkg/usr/lib/librsvg-2.so.2                                                                                                                                    
789f93bac257eac53e0c12d29c1aaa8a1fdd4eabdf57cf18de77f4064ccb32bb  /home/volker/Downloads/librsvg-2 2.54.4-1-x86_64.pkg/usr/lib/librsvg-2.so.2

$ pacman -Q librsvg                                                                                                                                                                                                               
librsvg 2:2.54.3-1
andrewgregory commented 2 years ago

You are comparing files from two different packages.