Commit 8205c982 authored by Samer Afach's avatar Samer Afach

Support version without letter version

parent 30dbaa1f
Pipeline #7 failed with stages
......@@ -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:")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment