Description of problem:
When dnf repoclosure finds unsatisfied dependencies in a repo, it prints the result, but the command still exits with 0, so it is hard to determine the result in scripts. Yum repoclosure exited with 1 in such case
Version-Release number of selected component (if applicable):
$ dnf repoclosure --version
$ rpm -q python3-dnf-plugins-extras-repoclosure
Steps to Reproduce:
1. Copy any RPM (with at least one dependency) into a new directory.
2. Run createrepo_c .
3. Run dnf repoclosure --repofrompath=my-repo,file://$(pwd) --repo=my-repo
4. It should print info about unresolved deps
5. Run echo $?
It exits with 0.
It should exit with some other code.
Using yum repoclosure prints the same information, but exits with 1.
$ repoclosure --repofrompath=my-repo,file://$(pwd) --repoid=my-repo
$ echo $?
This is planned to be fixed in next 1 month.
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.
Fixed in PR https://github.com/rpm-software-management/dnf-plugins-core/pull/212
The patch was released in dnf-plugins-core-2.0.0-1 into rawhide and Fc26.