From 0c155bef074edc1d72339d0eb42ad872a25ee4aa Mon Sep 17 00:00:00 2001 From: "Paul \"TBBle\" Hampson" Date: Mon, 12 Aug 2024 22:52:43 +0900 Subject: [PATCH] Make it easy to skip signature update in format.py Signed-off-by: Paul "TBBle" Hampson --- utils/format.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/utils/format.py b/utils/format.py index 88677fcf..28363507 100755 --- a/utils/format.py +++ b/utils/format.py @@ -244,15 +244,17 @@ If you want to contribute changes to a resolvers list, only edit files from the # Signatures - for path in [md_path, md_legacy_path, csv_historic_path]: - try: - subprocess.run( - ["minisign", "-V", "-P", MINISIGN_PK, "-m", path], check=True - ) - except subprocess.CalledProcessError: - signatures_to_update.append(path) + if signatures_to_update is not None: + for path in [md_path, md_legacy_path, csv_historic_path]: + try: + subprocess.run( + ["minisign", "-V", "-P", MINISIGN_PK, "-m", path], check=True + ) + except subprocess.CalledProcessError: + signatures_to_update.append(path) +# Change to None to skip signature updates, e.g. during development. signatures_to_update = [] for md_path in glob(CURRENT_DIR + "/*.md"):