Simplified the 'url_for_version' function for the 'Crypto++' package.
This commit is contained in:
parent
1728a0c3e6
commit
474db2085e
1 changed files with 1 additions and 3 deletions
|
@ -25,7 +25,5 @@ def install(self, spec, prefix):
|
||||||
install('libcryptopp.a', prefix.lib)
|
install('libcryptopp.a', prefix.lib)
|
||||||
|
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
version_tuple = tuple(v for v in iter(version))
|
version_string = str(version).replace('.', '')
|
||||||
version_string = reduce(lambda vs, nv: vs + str(nv), version_tuple, "")
|
|
||||||
|
|
||||||
return '%s/cryptopp%s.zip' % (Cryptopp.base_url, version_string)
|
return '%s/cryptopp%s.zip' % (Cryptopp.base_url, version_string)
|
||||||
|
|
Loading…
Reference in a new issue