Merge pull request #210 from rstudio/versions

Fix unexpected `4.3.3.tar.xz` version in `versions.json`
This commit is contained in:
Greg Lin 2024-02-29 14:09:35 -06:00 committed by GitHub
commit 49fd6fef5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ def _cran_r_versions(url):
r_versions = []
for link in soup.find_all('a'):
href = link.get('href')
if 'R-' in href:
if href.startswith('R-') and href.endswith('.tar.gz'):
v = href.replace('.tar.gz', '').replace('R-', '')
if '-revised' not in v: # reject 3.2.4-revised
r_versions.append(v)