You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running rpm-ostree --uninstall --idempotent with a package that's not present on the system exits error code 1, breaking idempotency assumptions in scripts (or in my case, Ansible). Ideally running uninstall with a set of packages that aren't present on the system should exit 0. This would match the behavior of dnf, as well as being properly idempotent.
Reproduction steps
Use rpm-ostree uninstall --idempotent to remove some package from your system.
Run the same command again.
Observe that the first run exited 0, while the second one exited 1.
Expected behavior
rpm-ostree uninstall --idempotent should exit 0 if the set of packages passed are not present on the system.
Actual behavior
rpm-ostree uninstall --idempotent exits 1 if the set of packages passed are not present on the system.
Describe the bug
Running
rpm-ostree --uninstall --idempotent
with a package that's not present on the system exits error code 1, breaking idempotency assumptions in scripts (or in my case, Ansible). Ideally running uninstall with a set of packages that aren't present on the system should exit 0. This would match the behavior ofdnf
, as well as being properly idempotent.Reproduction steps
rpm-ostree uninstall --idempotent
to remove some package from your system.Expected behavior
rpm-ostree uninstall --idempotent
should exit 0 if the set of packages passed are not present on the system.Actual behavior
rpm-ostree uninstall --idempotent
exits 1 if the set of packages passed are not present on the system.System details
bash-5.2# rpm-ostree --version rpm-ostree: Version: '2024.5' Git: 4479e824f94b09ec3f6c34f15b08f3813644fff6 Features: - rust - compose - container - fedora-integration
Additional information
No response
The text was updated successfully, but these errors were encountered: