lib.pkg_relations(): Beautify exceptions #93

Merged
Jan Lindemann merged 2 commits from jan/feature/20260910-lib-pkg-relations-beautify-exceptions into master 2026-09-10 10:03:09 +02:00 AGit
Showing only changes of commit e94437835f - Show all commits

lib.pkg_relations: Beautify exceptions
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m23s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m12s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m54s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m22s
CI / Packaging test (push) Successful in 0s

In pkg_relations(), pass dependent_package to Dependency.parse_deps_spec()
for better error reporting.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann 2026-09-10 07:55:09 +02:00
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -67,6 +67,7 @@ def pkg_relations(
for dep in Dependency.parse_deps_spec(
deps_spec,
lookup_version = app.get_version,
dependent_package = cur_pkg,
):
dep_name = dep.base_name
if dep_name in ignore or dep.full_name in ignore: