[pacman-dev] [PATCH] libalpm: Check cachedir access before re-creating