Fixed generating and using the repository list file.