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