format.py: verify all signatures, including v2
This commit is contained in:
parent
cdab5fbbc7
commit
feae3ae77c
@ -114,12 +114,6 @@ If you want to contribute changes to a resolvers list, only edit files from the
|
|||||||
f.write(out)
|
f.write(out)
|
||||||
os.rename(md_path + ".tmp", md_path)
|
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:
|
with open(md_legacy_path) as f:
|
||||||
previous_content = f.read()
|
previous_content = f.read()
|
||||||
if out_legacy == previous_content:
|
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:
|
with open(md_legacy_path + ".tmp", "wt") as f:
|
||||||
f.write(out_legacy)
|
f.write(out_legacy)
|
||||||
os.rename(md_legacy_path + ".tmp", md_legacy_path)
|
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 = []
|
signatures_to_update = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user