summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-04-05 14:10:16 +0100
committerErik Johnston <erik@matrix.org>2019-04-05 14:10:16 +0100
commit9bf49abc07882766972e28a76c5a068de0ebd0a9 (patch)
tree64fab2db39db7846b8968bde53ecd8159c2c9d0d /scripts-dev
parentPrevent exception when hs or shadow_hs missing (#5012) (diff)
parent0.99.3 (diff)
downloadsynapse-9bf49abc07882766972e28a76c5a068de0ebd0a9.tar.xz
Merge branch 'master' of github.com:matrix-org/synapse into dinsic
Diffstat (limited to 'scripts-dev')
-rwxr-xr-xscripts-dev/check-newsfragment4
-rw-r--r--scripts-dev/convert_server_keys.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts-dev/check-newsfragment b/scripts-dev/check-newsfragment

index e0ac84198e..0ec5075e79 100755 --- a/scripts-dev/check-newsfragment +++ b/scripts-dev/check-newsfragment
@@ -31,8 +31,8 @@ echo # check that any new newsfiles on this branch end with a full stop. for f in `git diff --name-only FETCH_HEAD... -- changelog.d`; do lastchar=`tr -d '\n' < $f | tail -c 1` - if [ $lastchar != '.' ]; then - echo -e "\e[31mERROR: newsfragment $f does not end with a '.'\e[39m" >&2 + if [ $lastchar != '.' -a $lastchar != '!' ]; then + echo -e "\e[31mERROR: newsfragment $f does not end with a '.' or '!'\e[39m" >&2 exit 1 fi done diff --git a/scripts-dev/convert_server_keys.py b/scripts-dev/convert_server_keys.py
index dde8596697..ac152b5c42 100644 --- a/scripts-dev/convert_server_keys.py +++ b/scripts-dev/convert_server_keys.py
@@ -76,7 +76,7 @@ def rows_v2(server, json): def main(): - config = yaml.load(open(sys.argv[1])) + config = yaml.safe_load(open(sys.argv[1])) valid_until = int(time.time() / (3600 * 24)) * 1000 * 3600 * 24 server_name = config["server_name"]