[pacman-dev] [PATCH v2] Add a utility function to check whether a file exists in the cache