diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-05-29 07:30:37 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-05-29 07:30:37 -0400 |
commit | da5a321e0d4266f81ff89d2c7f7b233ad6a6bd41 (patch) | |
tree | 560a3c121eb071194087f026d93f5d8cadf8341b /tasks.py | |
parent | 02166c4af25a5af539400ea48641d024c1a6d767 (diff) | |
parent | ee1ca74dec142d96c6aac937c68b66acef3eb7a0 (diff) | |
download | cryptography-da5a321e0d4266f81ff89d2c7f7b233ad6a6bd41.tar.gz cryptography-da5a321e0d4266f81ff89d2c7f7b233ad6a6bd41.tar.bz2 cryptography-da5a321e0d4266f81ff89d2c7f7b233ad6a6bd41.zip |
Merge pull request #1997 from reaperhulk/tasks-fix
skip the wheel if it's not from the latest build
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -47,7 +47,16 @@ def download_artifacts(session): paths = [] + last_build_number = response.json()["number"] for run in response.json()["runs"]: + if run["number"] != last_build_number: + print( + "Skipping {0} as it is not from the latest build ({1})".format( + run["url"], last_build_number + ) + ) + continue + response = session.get( run["url"] + "api/json/", headers={ |