Bug 1246211 - DNF Repoquery: Automatically enable repo selected by --repo
DNF Repoquery: Automatically enable repo selected by --repo
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core (Show other bugs)
Unspecified Unspecified
low Severity unspecified
: ---
: ---
Assigned To: rpm-software-management
Fedora Extras Quality Assurance
: EasyFix, Triaged
Depends On:
  Show dependency treegraph
Reported: 2015-07-23 13:29 EDT by Tomas Radej
Modified: 2016-10-04 15:13 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-10-04 15:13:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tomas Radej 2015-07-23 13:29:46 EDT
Description of problem:
When the repo FOO in 

    dnf repoquery --repo FOO

is not enabled, an empty result is returned. It is necessary to enable the repo manually:

    dnf repoquery --enablerepo FOO --repo FOO

Even though this behaviour is technically correct, I believe it would be logical and user friendly to automatically enable repos selected by --repo.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Disable a repository (FOO)
2. $ dnf repoquery --repo FOO

Actual results:
Empty result

Expected results:
Listing of all packages in the repo FOO
Comment 1 Radek Holy 2015-07-24 04:32:27 EDT
...or we should at least print a warning.

FTR, I remember that we intentionally did not introduce this behaviour when implementing "dnf repo-pkgs". So, if we are going to implement this, it would be nice to make it consistent among all DNF commands.
Comment 2 Honza Silhan 2015-08-10 08:46:46 EDT
Right, t should enable the specified repo. The same for "repo-pkgs".
Comment 3 Honza Silhan 2015-08-10 08:48:01 EDT
With this change we can transfer this switch to DNF.
Comment 4 Fedora Admin XMLRPC Client 2016-07-08 05:25:49 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 5 Jaroslav Mracek 2016-09-20 08:54:43 EDT
The bug reported here is fixed in upstream (dnf-2.0), but problem mentioned in Comment 2 is solved by PR: https://github.com/rpm-software-management/dnf/pull/615

Note You need to log in before you can comment on or make changes to this bug.