Simplified the 'url_for_version' function for the 'Crypto++' package.

This commit is contained in:
Joseph Ciurej 2016-03-22 15:55:54 -07:00
parent 1728a0c3e6
commit 474db2085e

View file

@ -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)