Skip to content

Commit

Permalink
Add R-project mirror domain for build pattern detection
Browse files Browse the repository at this point in the history
We use ftp.osuosl.org/pub/cran/ as a CRAN mirror, and autospec uses the
URL to select the R build pattern, so make sure that URL is also
included.
  • Loading branch information
bwarden committed Nov 14, 2024
1 parent e822d6e commit 53aa4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def set_build_pattern(self, pattern, strength):
def detect_build_from_url(self, url):
"""Detect build patterns and build requirements from the patterns detected in the url."""
# R package
if "cran.r-project.org" in url or "cran.rstudio.com" in url:
if "cran.r-project.org" in url or "cran.rstudio.com" in url or "/pub/cran/" in url:
self.set_build_pattern("R", 10)

# python
Expand Down

0 comments on commit 53aa4d1

Please sign in to comment.