Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninstalling a package that's not present with --idempotent returns non-zero exit code #4954

Open
SriRamanujam opened this issue May 12, 2024 · 0 comments

Comments

@SriRamanujam
Copy link

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 of dnf, as well as being properly idempotent.

Reproduction steps

  1. Use rpm-ostree uninstall --idempotent to remove some package from your system.
  2. Run the same command again.
  3. 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.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant