aboutsummaryrefslogtreecommitdiffstats
path: root/tasks.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-05-29 07:30:37 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-05-29 07:30:37 -0400
commitda5a321e0d4266f81ff89d2c7f7b233ad6a6bd41 (patch)
tree560a3c121eb071194087f026d93f5d8cadf8341b /tasks.py
parent02166c4af25a5af539400ea48641d024c1a6d767 (diff)
parentee1ca74dec142d96c6aac937c68b66acef3eb7a0 (diff)
downloadcryptography-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.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
index 74ff6b19..76d0d029 100644
--- a/tasks.py
+++ b/tasks.py
@@ -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={