build/fix
This commit is contained in:
parent
5041661a62
commit
9c40f6df6b
1 changed files with 5 additions and 3 deletions
|
@ -42,15 +42,17 @@ def build(sign):
|
|||
pdf = f'{fr}.pdf'
|
||||
os.rename(os.path.join(TMP, f'{en}.pdf'),
|
||||
os.path.join(TMP, pdf))
|
||||
os.rename(os.path.join(TMP, pdf), pdf)
|
||||
if sign:
|
||||
if not sign:
|
||||
os.rename(os.path.join(TMP, pdf), pdf)
|
||||
else:
|
||||
run(['gpg',
|
||||
'--armor',
|
||||
'--detach-sign',
|
||||
os.path.join(TMP, pdf),
|
||||
])
|
||||
signature = f'{pdf}.asc'
|
||||
os.rename(os.path.join(TMP, signature), signature)
|
||||
for f in [pdf, signature]:
|
||||
os.rename(os.path.join(TMP, f), f)
|
||||
lines = errun(['gpg',
|
||||
'--verify', signature, pdf,
|
||||
]).decode('u8').splitlines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue