From 3476f63dca3bbc69de1e89d3f72dfba99134e87a Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 28 Apr 2022 14:19:18 -0700 Subject: [PATCH] compare-settings-to-template: Handle prod_settings_template renaming. --- scripts/setup/compare-settings-to-template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/setup/compare-settings-to-template b/scripts/setup/compare-settings-to-template index 63c9a9ee25..92a058dc08 100755 --- a/scripts/setup/compare-settings-to-template +++ b/scripts/setup/compare-settings-to-template @@ -38,9 +38,13 @@ while url is not None: if not re.match(r"^\d+\.\d+(\.\d+)?$", tag): continue + filename = "zproject/prod_settings_template.py" + if [int(x) for x in tag.split(".")] < [1, 4]: + filename = "zproject/local_settings_template.py" + print(f" - {tag}") resp = requests.get( - f"https://raw.githubusercontent.com/zulip/zulip/{tag}/zproject/prod_settings_template.py", + f"https://raw.githubusercontent.com/zulip/zulip/{tag}/{filename}", ) if resp.status_code == 200: templ[tag] = resp.content.decode()