[5.27] rpm-ostree: Fix error paths in Transaction & update to check new version label
rpm-ostree: Fix error paths in Transaction
Make sure that all error paths mark the transaction as completed before returning.
rpm-ostree: Fix version checks for container path
Starting with rpm-ostree v2024.3, the version is only set with the 'org.opencontainers.image.version' label and no longer with the 'version' one.
Check the new label first and the old one second to be compatible with all images.
See:
- https://github.com/coreos/rpm-ostree/releases/tag/v2024.3
- https://github.com/coreos/rpm-ostree/pull/4794
- https://github.com/ostreedev/ostree-rs-ext/pull/581
This is a backport of !790 (merged)
Edited by Timothée Ravier