Bug 2223347
| Summary: | dnf repoquery pollutes output with repo loading messages | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | dnf5 | Assignee: | amatej |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 40 | CC: | jkolarik, nsella, petersen, pkratoch, ppisar, rpm-software-management |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-04 07:27:13 UTC | Type: | --- |
| 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: | 2247867 | ||
|
Description
Miro Hrončok
2023-07-17 12:16:46 UTC
I have looked into it and in the old dnf only the repolist, search and repoquery commands redirect this output to stderr. It seems kind of confusing. For processing we plan to add a machine readable format output: https://github.com/rpm-software-management/dnf5/issues/512 I think that would be a better solution. A machine-readable format output sounds great, but please don't let perfect be the enemy of good. Please restore the dnf4 behavior here. This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39. (In reply to Miro Hrončok from comment #2) > A machine-readable format output sounds great, but please don't let perfect > be the enemy of good. Please restore the dnf4 behavior here. +1 Please address this: it is quite common to do repoquery in shell scripts, etc and including "stderr output" in stdout completely breaks that. I think the only workaround is to use --quiet. Further https://github.com/rpm-software-management/dnf5/issues/867 seems not to cover repoquery, so the argument seems moot. I opened https://github.com/rpm-software-management/dnf5/issues/1361 too in the hope that it may get more attention upstream. (In reply to Jens Petersen from comment #4) > I think the only workaround is to use --quiet. In fact doesn't seem to help, hm *** This bug has been marked as a duplicate of bug 2172868 *** |