Skip to content

Commit 33dab5b

Browse files
committed
Make sure to use real CRAN mirror for checking meta files.
Fixes r-universe-org/help#627
1 parent 0fd4aba commit 33dab5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/buildtools.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,8 @@ get_cran_releases_fast <- function(package){
10441044
}
10451045

10461046
get_cran_releases_slow <- function(package){
1047+
oldrepos <- options(repos = c(CRAN = 'https://cloud.r-project.org'))
1048+
on.exit(options(repos = oldrepos))
10471049
current <- tools:::CRAN_current_db()
10481050
matches <- which(grepl(sprintf('^%s_.*\\.tar\\.gz', package), row.names(current)))
10491051
filenames <- row.names(current)[matches]

0 commit comments

Comments
 (0)