summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-14 21:11:09 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-14 21:11:09 +0100
commita09fa32118828d2af282566e94aacd7f153b8643 (patch)
treec0c4841c284b4f79aa6f2c66a6d72555c4dd5b96 /wscript
parent4ff0e7ddb7580e91892075f6f11e2ef6d29578d6 (diff)
Add subscribers in their own part of the about box.
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index 755f300a1..27f06f8a1 100644
--- a/wscript
+++ b/wscript
@@ -609,9 +609,11 @@ def configure(conf):
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()}))
+ r = os.system('curl -s -f https://dcpomatic.com/supporters.cc?%s > src/wx/supporters.cc' % urlencode({"until": last_date.strip()}))
+ if (r >> 8) == 0:
+ r = os.system('curl -s -f https://dcpomatic.com/subscribers.cc?%s > src/wx/subscribers.cc' % urlencode({"until": last_date.strip()}))
if (r >> 8) != 0 and can_fail:
- raise Exception("Could not download supporters list")
+ raise Exception("Could not download supporters lists")
def build(bld):
create_version_cc(VERSION, bld.env.CXXFLAGS)