From: Carl Hetherington Date: Sat, 14 Jul 2018 21:18:37 +0000 (+0100) Subject: Stop the build if we can't download the supporters' list. X-Git-Tag: v2.13.36~44 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=c17854ec972df7aae979a7786451f4c0d1470522;p=dcpomatic.git Stop the build if we can't download the supporters' list. --- diff --git a/wscript b/wscript index 824cfa9dc..042084c97 100644 --- a/wscript +++ b/wscript @@ -608,7 +608,9 @@ def configure(conf): def download_supporters(): last_date = subprocess.Popen(shlex.split('git log -1 --format=%%ai %s' % last_version), stdout=subprocess.PIPE).communicate()[0] - os.system('curl https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) + r = os.system('curl -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) + if (r >> 8) != 0: + raise Exception("Could not download supporters list") def build(bld): create_version_cc(VERSION, bld.env.CXXFLAGS)