build/vrf
This commit is contained in:
parent
5cba219744
commit
26f50af25d
1 changed files with 12 additions and 2 deletions
|
@ -11,8 +11,13 @@ DOCUMENTS = [
|
||||||
TMP = 'tmp'
|
TMP = 'tmp'
|
||||||
|
|
||||||
|
|
||||||
def run(args):
|
def run(command):
|
||||||
subprocess.call(args)
|
subprocess.call(command)
|
||||||
|
|
||||||
|
|
||||||
|
def errun(command):
|
||||||
|
return subprocess.check_output(
|
||||||
|
command, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
|
@ -42,6 +47,11 @@ def build():
|
||||||
signature = f'{pdf}.asc'
|
signature = f'{pdf}.asc'
|
||||||
for f in [pdf, signature]:
|
for f in [pdf, signature]:
|
||||||
os.rename(os.path.join(TMP, f), f)
|
os.rename(os.path.join(TMP, f), f)
|
||||||
|
buffer = errun(['gpg',
|
||||||
|
'--verify', signature, pdf,
|
||||||
|
])
|
||||||
|
with open(f'{pdf}.vrf', 'bw') as f:
|
||||||
|
f.write(buffer)
|
||||||
|
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue