Description of problem: When any available repo and --disablerepo=* it produce incorrect error message. Example: sudo dnf install --setopt=reposdir=/tmp --disablerepo=* PackageKit-1.0.11-1.fc23.x86_64.rpm Version-Release number of selected component (if applicable): How reproducible: [jmracek@dhcp-0-213 dnf]$ sudo yum-deprecated --setopt=reposdir=/tmp --disablerepo=* repolist Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Loaded plugins: show-leaves repolist: 0 [jmracek@dhcp-0-213 dnf]$ sudo dnf --setopt=reposdir=/tmp --disablerepo=* repolist Error: Unknown repo: '*' Steps to Reproduce: 1. 2. 3. Actual results: Error: Unknown repo: '*' Expected results: Like when some repo available - no error and command will be performed. Additional info:
as discussed with Jaroslav, if disablerepo doesn't match anything - just print warning. if enablerepo doesn't match anything - throw error.
Stepan, take a look, please. Fix just the `--disablerepo` part. Print just warning when it does not match anything.
PR was created: https://github.com/rpm-software-management/dnf/pull/530
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Bugs fixed in version of dnf-2.0.1-1.