correctly handle updating the repository list