Fix a bug with CRAN-like repositories.