debian-forge/osbuild
Tomáš Hozza cdde20385d solver/dnf.py: fix depsolve MarkingErrors
The returned error reason didn't contain any details after the merge
with DNF4 version. The reason is that previously, the actual exception
returned by the DNF library was appended to the error reason. However,
now it is wrapped by a custom `MarkingErrors` exception, which didn't
have any details set. The wrapped exception in the `__cause__`
property was not taken into account. Revert to the original behavior
by reusing the wrapped exception message as the message for the
wrapper exception.

Extend the unit test to allow testing of depsolving failures.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-08-08 09:58:41 +02:00
..
formats format/v2: add new "partition" field to "describe_mount" 2023-12-22 10:18:29 -05:00
solver solver/dnf.py: fix depsolve MarkingErrors 2024-08-08 09:58:41 +02:00
testutil test: add new https_serve_directory() and test certs 2024-07-29 16:51:48 +02:00
util Revert "runners: clean up temp files before exiting the runner" 2024-05-20 11:55:24 -07:00
__init__.py Post release version bump 2024-07-31 08:15:39 +00:00
__main__.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
api.py Fix errors reported by new version of mypy 2023-04-12 11:57:18 +02:00
buildroot.py osbuild: make the entire /etc/selinux avaialble for the buildroot 2024-03-22 11:24:35 +01:00
devices.py osbuild: error when {Device,Mount} is modified after creation 2024-01-19 02:54:26 +01:00
host.py tox: add tox 2023-08-01 15:01:13 +02:00
inputs.py osbuild: error when {Device,Mount} is modified after creation 2024-01-19 02:54:26 +01:00
loop.py Revert "osbuild: ensure loop.Loop() has the required device node" 2024-03-13 22:16:51 +02:00
main_cli.py main,monitor: fix total steps in progress reporting 2024-07-31 23:00:33 +02:00
meta.py meta: automatically allow devices as input in the stages schemas 2024-04-16 08:04:43 +02:00
mixins.py osbuild: error when {Device,Mount} is modified after creation 2024-01-19 02:54:26 +01:00
monitor.py main,monitor: fix total steps in progress reporting 2024-07-31 23:00:33 +02:00
mounts.py mounts/ostree.deployment: support deployments on mount 2024-01-31 16:46:01 -05:00
objectstore.py objectstore: add new skip_preserve_owner to Object.export() 2023-12-20 09:28:39 +01:00
pipeline.py osbuild: add workaround to integrate sources into progress reporting 2024-03-12 16:44:12 +01:00
remoteloop.py osbuild: reuse loop_for_fd() in LoopServer 2024-03-11 10:56:49 +01:00
sources.py sources: transform() is only used in the curl sources, remove from ABC 2024-03-19 14:21:57 +01:00