pacman -Dk detects issues with 'files' but then returns success exit code
Pacman version
Pacman v6.0.2 - libalpm v13.0.2
Description
pacman -Dk
detects "multiple packages do not own the same file" error,
but then says there are no errors and returns success exit code.
How to reproduce
# sed -i '2 i usr/bin/echo' /var/lib/pacman/local/pacman-6.0.2-8/files
# pacman -Dk
error: file owned by 'coreutils' and 'pacman': 'usr/bin/echo'
No database errors have been found!
# echo $?
0
Edited by Miho Kei