When a package stops replacing a file, that file gets uninstalled completely rather than switching back to the version of the original providing package
In postmarketOS we are currently overwriting
/etc/sudoers from sudo in one of our packages but we want to stop doing that in pmaports!2181. However while testing this change we noticed that rather than the file being either reverted back to what sudo itself provides or just being left there, it would get uninstalled instead.
This seems strange, seeing there is still a package on the system that provides (and needs!) that file, it's just the original providing package again. To "fix" it we need to reinstall sudo to let it put it's own file back again, but of course we can't tell all our users to manually run
apk fix sudo after a random system upgrade.