IDK :) userman or smt.. and inital commit

This commit is contained in:
2026-05-18 00:46:02 +02:00
commit 5a5b1a190b
14 changed files with 336 additions and 0 deletions
+15
View File
@@ -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