Fix for Joomla > 3.7

This commit is contained in:
Christoph Haas 2017-07-11 01:01:22 +02:00
parent ce91894dc7
commit 5f407b9f68

View File

@ -92,7 +92,7 @@ def download_joomla_version(joomla_version):
dst_file = Path(dst_path) dst_file = Path(dst_path)
if not dst_file.is_file(): if not dst_file.is_file():
if StrictVersion(joomla_version) > StrictVersion('3.7.1'): if StrictVersion(joomla_version) > StrictVersion('3.7.1'):
version_string2 = ".".join(version_string.rsplit('-', 1)) version_string2 = ".".join(version_string.rsplit('-', 2))
url = "https://downloads.joomla.org/cms/" + \ url = "https://downloads.joomla.org/cms/" + \
version_path + "/" + version_string + \ version_path + "/" + version_string + \