[pacman-dev] [PATCH 1/2] alpm: check for invalid sync db before replacing original