Skip to content

Commit 068c01e

Browse files
author
hornik
committed
Tweaks.
git-svn-id: https://svn.r-project.org/R/trunk@88747 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 603dc8e commit 068c01e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/library/tools/R/urltools.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ function(db, remote = TRUE, verbose = FALSE, parallel = FALSE, pool = NULL)
551551
(grepl("^https?://cran.r-project.org/web/views/[[:alnum:]]+[.]html$",
552552
ul)) ||
553553
startsWith(ul, "http://cran.r-project.org") ||
554-
any(startsWith(ul, mirrors)))
554+
any(startsWith(ul, mirrors) &
555+
(sub("/$", "", ul) != mirrors)))
555556
R <- grepl("^http://(www|bugs|journal).r-project.org", ul)
556557
spaces <- grepl(" ", u)
557558
c(if(cran) u else "", if(spaces) u else "", if(R) u else "")

0 commit comments

Comments
 (0)