Remove pacman delegation and fix minor issues with database logic

This commit is contained in:
2026-05-18 14:20:45 +02:00
parent 5a5b1a190b
commit df42c118bf
2 changed files with 3 additions and 8 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ import os
from config import load_config, CONFIG_FILE, get_repos
DB_PATH = os.path.expanduser(load_config()["db_path"])
DB_PATH = os.path.expanduser(load_config()["db_path"] / "sync")
def get_package_meta(pkgname: str) -> dict | None:
for dbfile in os.listdir(DB_PATH):
if not dbfile.endwith(".db"):
if not dbfile.endswith(".db"):
continue
meta = _search_db(os.path.join(DB_PATH, dbfile), pkgname)
if meta: