libsodium: Fix download URLs for older versions (#21257)
This commit is contained in:
parent
37bbe21692
commit
7d7315ba93
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue