Skip to content
Snippets Groups Projects
Commit c7061c6d authored by juanf's avatar juanf
Browse files

Fixed script to upload the latest version found instead of the first one, when...

Fixed script to upload the latest version found instead of the first one, when there is more than one version for the same sprint.

SVN: 29209
parent 0b57f66d
No related branches found
No related tags found
No related merge requests found
......@@ -117,11 +117,13 @@ def createMetabolomicsDssDist(version):
# return to the original dir
os.chdir(current_dir)
# When looking for a file this method returns the last founded, this way if there is more than one version it returns the latest.
def findFile(filePattern):
foundFile = None
for file in os.listdir(DOWNLOAD_FOLDER):
if file.startswith(filePattern):
return file
foundFile = file
return foundFile
if __name__ == '__main__':
if len(sys.argv) < 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment