Support version without letter version

This commit is contained in:
Samer Afach 2018-10-03 18:10:48 +02:00
parent 30dbaa1f27
commit 8205c98279

View File

@ -36,7 +36,7 @@ def download_file(filelink, target):
def download_openssl():
openssl_version_found = False
filename_ = ""
for ver_suffix in reversed(string.ascii_lowercase):
for ver_suffix in list(reversed(string.ascii_lowercase))+[""]:
version_str = base_openssl_version + ver_suffix
if(download_file(get_openssl_link(version_str), get_openssl_filename(version_str))):
openssl_version_found = True
@ -61,7 +61,7 @@ except:
working_dir = os.getcwd()
if not bool(re.match("(openssl-){1}(\d)+(.)(\d)+(.)(\d)+(\w)+(.tar.gz)",filename)):
if not bool(re.match("(openssl-){1}(\d)+(.)(\d)+(.)(\d)+(\w)*(.tar.gz)",filename)):
print("The file given '" + filename + "' doesn't seem to be an openssl source file. It must be in the form: openssl-x.y.zw.tar.gz")
exit(1)