libsodium: Fix download URLs for older versions (#21257)

This commit is contained in:
Baptiste Jonglez 2021-01-25 22:07:53 +01:00 committed by GitHub
parent 37bbe21692
commit 7d7315ba93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,8 +26,8 @@ class Libsodium(AutotoolsPackage):
def url_for_version(self, version): def url_for_version(self, version):
url = 'https://download.libsodium.org/libsodium/releases/' url = 'https://download.libsodium.org/libsodium/releases/'
if version < Version('1.0.4'): if version < Version('1.0.16'):
url += 'old/unsupported/' url += 'old/unsupported/'
elif version < Version('1.0.16'): elif version < Version('1.0.17'):
url += 'old/' url += 'old/'
return url + 'libsodium-{0}.tar.gz'.format(version) return url + 'libsodium-{0}.tar.gz'.format(version)