Since a few days ago, I have been facing an issue where running sudo pacman -Syu and sudo pacman -Syyu outputs the following error, then the command will end. It does look like this started with the release that was done 4 days ago.
:: Synchronizing package databases...
core is up to date
extra 7.3 MiB 4.90 MiB/s 00:01 [###################################################################] 100%
selinux is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/sync/selinux.db: Unrecognized archive format
error: failed to prepare transaction (invalid or corrupted database
When inspecting /var/lib/pacman/sync/selinux.db it seems that all that files contains is the text "selinux.db.tar.xz". I have tried deleting the file, but it regenerates with the same contents. If i comment out the selinux lines from /etc/pacman.conf, it at least lets pacman upgrade the core and extra packages, but selinux will no longer update.
Does anyone have any ideas on how to fix this?