[pacman-dev] [PATCH 5/8] Move check function into its own file