diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-26 17:57:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-26 17:57:48 +0100 |
| commit | 573e3f56af070750a755940203cd971c12928bc3 (patch) | |
| tree | b98930427b55509d4b44ae6e5519569bc9ce8b63 /wscript | |
| parent | 53e1b97984f7e8c7bf1b16a9f3a333578545ec10 (diff) | |
Allow debug builds without internet access.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -607,15 +607,15 @@ def configure(conf): Logs.pprint('YELLOW', '') -def download_supporters(): +def download_supporters(can_fail): last_date = subprocess.Popen(shlex.split('git log -1 --format=%%ai %s' % last_version), stdout=subprocess.PIPE).communicate()[0] r = os.system('curl -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()})) - if (r >> 8) != 0: + if (r >> 8) != 0 and can_fail: raise Exception("Could not download supporters list") def build(bld): create_version_cc(VERSION, bld.env.CXXFLAGS) - download_supporters() + download_supporters(not bld.env.DEBUG) bld.recurse('src') bld.recurse('graphics') |
