[pacman-dev] [PATCH 1/7] repo-add: move database rotation into its own function