Bug 1361617
| Summary: | [RFE] repoquery should support a "what-build-requires" query | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ondřej Lysoněk <olysonek> | |
| Component: | dnf-plugins-core | Assignee: | rpm-software-management | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | medium | |||
| Version: | rawhide | CC: | dmach, jmracek, jskarvad, orion, packaging-team-maint, RadekHolyPublic, rpm-software-management, sergio, torsava, vmukhame | |
| Target Milestone: | --- | Keywords: | Documentation, FutureFeature, Triaged, UserExperience | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | dnf-4.0.4 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1465399 (view as bug list) | Environment: | ||
| Last Closed: | 2018-11-22 18:40:07 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: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1465399 | |||
|
Description
Ondřej Lysoněk
2016-07-29 14:18:09 UTC
I.e. alias for: dnf repoquery --disablerepo=\* --enablerepo=SRC --arch=src --whatrequires PKG I could be called --whatbuildrequires, etc. The above example is not straightforward and it is not easy to find it. At least it should be present in the dnf.plugin.repoquery manual page examples. $ dnf repoquery --repo=fedora-rawhide --arch src --whatrequires PKG in DNF 2.0, but agree that it should be documented. Update, this works on dnf 1.1.10: $ dnf repoquery --disablerepo=\* --enablerepo=rawhide-source --arch=src --whatrequires PKG and about query Exclusivearch tag ? # dnf repoquery --disablerepo=\* --enablerepo=rawhide-source --arch=src --whatrequires python3-pkgversion-macros
Traceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module>
main.user_main(sys.argv[1:], exit_code=True)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main
errcode = main(args)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 95, in _main
cli.configure(list(map(ucd, args)), option_parser())
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 878, in configure
self.base.conf._configure_from_options(opts)
File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 843, in _configure_from_options
setattr(self, name, value)
File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 908, in arch
assert(val in dnf.rpm._BASEARCH_MAP.keys())
AssertionError
dnf-2.6.2-3.fc27.noarch
The problem presented in Comment 6 was solved in dnf-2.6.3-1 . I created a patch with enhanced documentation: https://github.com/rpm-software-management/dnf/pull/1113 |