Description of problem: When I run for example 'dnf install bash fdfrhewiaur' (first package exists, the second doesn't), I got an exit code 0. Version-Release number of selected component (if applicable): dnf-0:0.5.2-1.fc20.noarch How reproducible: Steps to Reproduce: 1. dnf install bash fdfrhewiaur Actual results: exit code == 0 Expected results: exit code != 0 Additional info: I got the same behaviour with yum as well.
Thanks, we'll take a look.
*** Bug 1128139 has been marked as a duplicate of this bug. ***
*** Bug 1113080 has been marked as a duplicate of this bug. ***
Just to make it clear, the expected behaviour in this case (and that's how we are going to fix this) is that DNF should fail (aka install nothing) with a non-zero exit status. When we fix this, there will be no command that allows you to install just the installable packages and skip the arguments that match packages that cannot be installed. There should be a really good use case for such a command that is not known to us yet.
(In reply to Radek Holy from comment #4) > Just to make it clear, the expected behaviour in this case (and that's how > we are going to fix this) is that DNF should fail (aka install nothing) with > a non-zero exit status. Yes, the non-zero exit status is very important here. > When we fix this, there will be no command that allows you to install just > the installable packages and skip the arguments that match packages that > cannot be installed. There should be a really good use case for such a > command that is not known to us yet. When installing (build) dependencies of a package interactively, I would like dnf to install all the packages that it knows to install and then let me (the user) install the missing ones manually. AFAIK, this functionality is already missing in yum-builddep. Please have a look at the --continue-on-failure option of Paludis: http://paludis.exherbo.org/clients/cave-resolve.html
Kamil, feel free to open an RFE if you run into a real situation that cannot be (and should be) solved by DNF.
Fixed by upstream commit 5bc2e739e47923d728359cb5e2447fa8e0183199 ( https://github.com/rpm-software-management/dnf/commit/5bc2e739e47923d728359cb5e2447fa8e0183199 ).