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)
|
||||
|
||||
def url_for_version(self, version):
|
||||
version_tuple = tuple(v for v in iter(version))
|
||||
version_string = reduce(lambda vs, nv: vs + str(nv), version_tuple, "")
|
||||
|
||||
version_string = str(version).replace('.', '')
|
||||
return '%s/cryptopp%s.zip' % (Cryptopp.base_url, version_string)
|
||||
|
|
Loading…
Reference in a new issue