Skip to content

Commit

Permalink
Update for openssl's new download page
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Jul 27, 2024
1 parent 7822a99 commit b76c457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/download_dists
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ for m in re.finditer(r'(?i)href="(zlib-((?:\w+\.)+\w+).*\.tar.gz)"', r.text):
zlib_version = max(versions, key=itemgetter(1))
zlib_src = f'{zlib_url}{zlib_version[0]}'

openssl_url = 'https://www.openssl.org/source/'
openssl_url = 'https://www.openssl-library.org/source/'
r = get_url(openssl_url)
versions = []
for m in re.finditer(r'(?i)href="(openssl-(3.*?)\.tar\.gz)"', r.text):
for m in re.finditer(r'(?i)href="(.*?openssl-(3\.[a-z0-9\.]*?)\.tar\.gz)"', r.text):
versions.append((m.group(1), m.group(2)))
openssl_version = max(versions, key=parse_openssl_version)
openssl_src = f'{openssl_url}{openssl_version[0]}'
openssl_src = f'{openssl_version[0]}'

overall_version = []

Expand Down

0 comments on commit b76c457

Please sign in to comment.