| Summary: | Incorrect option --repo instead of --repoid in manual | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Goodwin <mike> |
| Component: | dnf-plugins-core | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 23 | CC: | jsilhan, mluscon, packaging-team-maint, pnemade, RadekHolyPublic, vmukhame |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-18 11:37:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike Goodwin
2016-04-18 10:11:02 UTC
More info copied from github PR comment https://github.com/rpm-software-management/dnf-plugins-core/pull/158#issuecomment-211323999: As I investigate this further it's not simply a mis-documented switch, something else is awry: https://github.com/xenithorb/dnf-plugins-core/blob/master/plugins/repoquery.py#L88-92 Here we see: parser.add_argument('--repo', metavar='REPO', action='append', help=_('show only results from this REPO')) # make --repoid hidden compatibility alias for --repo parser.add_argument('--repoid', dest='repo', action='append', help=argparse.SUPPRESS) Of course the reason I'm here at all is simply because --repo does not work, the parent DNF command complains about it being bad format for --repofrompath, which is when --repoid works as intended. Example: #> dnf repoquery --repo fedora-nvidia usage: dnf [--allowerasing] [-b] [-C] [-c [config file]] [-d [debug level]] [--debugsolver] [--showduplicates] [-e ERRORLEVEL] [--rpmverbosity [debug level name]] [-q] [-v] [-y] [--assumeno] [--version] [--installroot [path]] [--enablerepo [repo]] [--disablerepo [repo]] [-x [package]] [--disableexcludes [repo]] [--repofrompath [repo,path]] [--noplugins] [--nogpgcheck] [--disableplugin [plugin]] [--color COLOR] [--releasever RELEASEVER] [--setopt SETOPTS] [--refresh] [-4] [-6] [--downloadonly] [-h] Command line error: argument --repofrompath: bad format: fedora-nvidia Further sleuthing shows this commit: d1089a7 by @MichaelMraka which is basically the reverse of what I'm trying to accomplish. Perhaps "--repo" is no longer warranted due to the incompatibility with dnf proper, and we can just revert Michael's commit? I would not merge my PR at this point This bug also needs to be filed against component: python3-dnf-plugins-core-0.1.20-1.fc23.noarch but I don't see that in the component list, can someone assist? *** This bug has been marked as a duplicate of bug 1260986 *** |