Skip to content

Commit 425379c

Browse files
committed
Fix update.sh to properly filter RC versions
1 parent 1a76340 commit 425379c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

update.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ for version in "${versions[@]}"; do
5858
{
5959
git ls-remote --tags https://github.com/python/cpython.git "refs/tags/v${rcVersion}.*" \
6060
| sed -r 's!^.*refs/tags/v([0-9a-z.]+).*$!\1!' \
61+
| grep $rcGrepV -E -- '[a-zA-Z]+' \
6162
|| :
6263
6364
# this page has a very aggressive varnish cache in front of it, which is why we also scrape tags from GitHub
6465
curl -fsSL 'https://www.python.org/ftp/python/' \
6566
| grep '<a href="'"$rcVersion." \
6667
| sed -r 's!.*<a href="([^"/]+)/?".*!\1!' \
68+
| grep $rcGrepV -E -- '[a-zA-Z]+' \
6769
|| :
6870
} | sort -ruV
6971
) )

0 commit comments

Comments
 (0)