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

Newly introduced checks on dependencies trigger, but deliver somewhat incomprehensible error messages. This PR adds detail to them.

lib.version.Dependency: Beautify exceptions

Add a dependent_package parameter to Dependency's constructor, and use it in exceptions the class raises.

lib.pkg_relations: Beautify exceptions

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

Newly introduced checks on dependencies trigger, but deliver somewhat incomprehensible error messages. This PR adds detail to them. #### lib.version.Dependency: Beautify exceptions Add a dependent_package parameter to Dependency's constructor, and use it in exceptions the class raises. #### lib.pkg_relations: Beautify exceptions In pkg_relations(), pass dependent_package to Dependency.parse_deps_spec() for better error reporting.
Add a dependent_package parameter to Dependency's constructor, and use it
in exceptions the class raises.

Signed-off-by: Jan Lindemann <jan@janware.com>
lib.pkg_relations: Beautify exceptions
Some checks failed
CI / Packaging - Kali Linux (pull_request) Failing after 4m7s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Failing after 3m58s
CI / Packaging test (pull_request) Failing after 0s
d2e4d3d240
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 scheduled this pull request to auto merge when all checks succeed 2026-09-10 08:11:03 +02:00
Jan Lindemann force-pushed jan/feature/20260910-lib-pkg-relations-beautify-exceptions from d2e4d3d240
Some checks failed
CI / Packaging - Kali Linux (pull_request) Failing after 4m7s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Failing after 3m58s
CI / Packaging test (pull_request) Failing after 0s
to e94437835f
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
2026-09-10 09:54:31 +02:00
Compare
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!93
No description provided.