mirror of https://github.com/zulip/zulip.git
compare-settings-to-template: Handle prod_settings_template renaming.
This commit is contained in:
parent
b6b6faa404
commit
3476f63dca
|
@ -38,9 +38,13 @@ while url is not None:
|
||||||
if not re.match(r"^\d+\.\d+(\.\d+)?$", tag):
|
if not re.match(r"^\d+\.\d+(\.\d+)?$", tag):
|
||||||
continue
|
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}")
|
print(f" - {tag}")
|
||||||
resp = requests.get(
|
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:
|
if resp.status_code == 200:
|
||||||
templ[tag] = resp.content.decode()
|
templ[tag] = resp.content.decode()
|
||||||
|
|
Loading…
Reference in New Issue