From feae3ae77ce80bb7920c1917dbaf01755affb48e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 9 Jul 2020 00:32:02 +0200 Subject: [PATCH] format.py: verify all signatures, including v2 --- utils/format.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/format.py b/utils/format.py index 9edad07a..31cdd011 100755 --- a/utils/format.py +++ b/utils/format.py @@ -114,12 +114,6 @@ If you want to contribute changes to a resolvers list, only edit files from the f.write(out) os.rename(md_path + ".tmp", md_path) - try: - subprocess.run(["minisign", "-V", "-P", MINISIGN_PK, - "-m", md_path], check=True) - except subprocess.CalledProcessError: - signatures_to_update.append(md_path) - with open(md_legacy_path) as f: previous_content = f.read() if out_legacy == previous_content: @@ -128,7 +122,13 @@ If you want to contribute changes to a resolvers list, only edit files from the with open(md_legacy_path + ".tmp", "wt") as f: f.write(out_legacy) os.rename(md_legacy_path + ".tmp", md_legacy_path) - signatures_to_update.append(md_legacy_path) + + for path in [md_path, md_legacy_path]: + try: + subprocess.run(["minisign", "-V", "-P", MINISIGN_PK, + "-m", path], check=True) + except subprocess.CalledProcessError: + signatures_to_update.append(path) signatures_to_update = []