Description of problem: Trying to install an already installed program returns 0, while trying to remove a not present program returns 1. Doesn’t make any sense to me… Version-Release number of selected component (if applicable): 2.7.5 How reproducible: Always Steps to Reproduce: 1. `dnf install dnf` ⇒ 0 2. `dnf install <not installed program>` ⇒ 1 Expected results: Both commands should return 0. They output just states, that nothing has to be done – so why should that be an error?
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle. Changing version to '28'.
PR: https://github.com/rpm-software-management/dnf/pull/1227
Reassigning to jmracek who is more competent to solve this. Please ignore the above PR.
I created a patch (https://github.com/rpm-software-management/dnf/pull/1269) that should unify behavior.
libdnf-0.22.3-1.fc29 dnf-4.0.9-1.fc29 dnf-plugins-core-4.0.2-1.fc29 dnf-plugins-extras-4.0.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-17cbc3c616
dnf-4.0.9-1.fc29, dnf-plugins-core-4.0.2-1.fc29, dnf-plugins-extras-4.0.0-1.fc29, libdnf-0.22.3-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-17cbc3c616
dnf-4.0.9-1.fc29, dnf-plugins-core-4.0.2-1.fc29, dnf-plugins-extras-4.0.0-1.fc29, libdnf-0.22.3-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.