IDK :) userman or smt.. and inital commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import subprocess
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from config import load_config
|
||||
|
||||
GPGDIR = os.path.expanduser(load_config()["gpg_dir"])
|
||||
|
||||
def verify_sig(pkg_path: Path, sig_path: Path) -> bool:
|
||||
result = subprocess.run([
|
||||
"gpg",
|
||||
"--homedir", str(GPGDIR),
|
||||
"--verify", str(sig_path), str(pkg_path)
|
||||
], capture_output=True)
|
||||
return result.returncode == 0
|
||||
Reference in New Issue
Block a user