diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-14 22:18:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-14 22:18:37 +0100 |
| commit | c17854ec972df7aae979a7786451f4c0d1470522 (patch) | |
| tree | db319a06fba533bf56f47076831390ce534eff6c /wscript | |
| parent | 9f4b7dd032e4d588720d46f858171c7f087f3e23 (diff) | |
Stop the build if we can't download the supporters' list.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |
