fix
This commit is contained in:
parent
d505187624
commit
a9f25f60dc
1 changed files with 4 additions and 4 deletions
|
@ -39,18 +39,18 @@ def build(sign):
|
||||||
])
|
])
|
||||||
run(command)
|
run(command)
|
||||||
run(command)
|
run(command)
|
||||||
os.rename(os.path.join(TMP, f'{en}.pdf'),
|
|
||||||
os.path.join(TMP, f'{fr}.pdf'))
|
|
||||||
if sign:
|
|
||||||
pdf = f'{fr}.pdf'
|
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:
|
||||||
run(['gpg',
|
run(['gpg',
|
||||||
'--armor',
|
'--armor',
|
||||||
'--detach-sign',
|
'--detach-sign',
|
||||||
os.path.join(TMP, pdf),
|
os.path.join(TMP, pdf),
|
||||||
])
|
])
|
||||||
signature = f'{pdf}.asc'
|
signature = f'{pdf}.asc'
|
||||||
for f in [pdf, signature]:
|
os.rename(os.path.join(TMP, signature), signature)
|
||||||
os.rename(os.path.join(TMP, f), f)
|
|
||||||
lines = errun(['gpg',
|
lines = errun(['gpg',
|
||||||
'--verify', signature, pdf,
|
'--verify', signature, pdf,
|
||||||
]).decode('u8').splitlines()
|
]).decode('u8').splitlines()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue