aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-28 23:23:26 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-28 23:23:26 -0500
commitee1ca74dec142d96c6aac937c68b66acef3eb7a0 (patch)
treeb1012b04fbdb9d33edcd8b5540dd866e3b9e6a3a
parentc19c6a04d5924b5edd68c570c98e4363226959ce (diff)
downloadcryptography-ee1ca74dec142d96c6aac937c68b66acef3eb7a0.tar.gz
cryptography-ee1ca74dec142d96c6aac937c68b66acef3eb7a0.tar.bz2
cryptography-ee1ca74dec142d96c6aac937c68b66acef3eb7a0.zip
skip the wheel if it's not from the latest build
-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={