Red Hat Bugzilla – Bug 1241126
builddep: empty run or run on unknown package name doesn't fail
Last modified: 2015-08-19 03:51:24 EDT
Description of problem:
When running `dnf builddep` or `dnf builddep package-that-doesnt-exist`, dnf returns output like:
Last metadata expiration check performed 0:01:20 ago on Wed Jul 8 15:48:00 2015.
Nothing to do.
From what I understand, when the argument doesn't end in src.rpm, rpm or spec, it searches repositories for package with that name. Since there is no package of that name (or no package as an argument), I'd expect some kind of an error message or warning and nonzero return code.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1a. run 'dnf builddep'
1b. run 'dnf builddep bogus-package-name'
# dnf builddep bogus-package-name
Last metadata expiration check performed 0:10:35 ago on Wed Jul 8 15:48:00 2015.
Nothing to do.
1a. Warning/help message for builddep
1b. Warning/error message stating wrong package name, package not found.
In both cases return value other than 0.
Proposed fix is a part of
dnf-plugins-core-0.1.10-1.fc23,dnf-1.1.0-1.fc23,hawkey-0.6.0-1.fc23 has been submitted as an update for Fedora 23.
dnf-plugins-core-0.1.10-1.fc22,dnf-1.1.0-1.fc22,hawkey-0.6.0-1.fc22 has been submitted as an update for Fedora 22.
Package dnf-plugins-core-0.1.10-1.fc22, dnf-1.1.0-1.fc22, hawkey-0.6.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.10-1.fc22 dnf-1.1.0-1.fc22 hawkey-0.6.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.10-1.fc22, hawkey-0.6.0-1.fc22, dnf-1.1.0-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugins-core-0.1.10-1.fc23, hawkey-0.6.0-1.fc23, dnf-1.1.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.