Bug 2172868 - [dnf5] dnf5 repoquery mixes up stdout and stderr
Summary: [dnf5] dnf5 repoquery mixes up stdout and stderr
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-23 11:13 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2023-08-16 07:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1358245 0 low CLOSED repoquery: valid use of stderr and stdout, use stdout only for requested data 2023-02-23 11:13:09 UTC

Description Zbigniew Jędrzejewski-Szmek 2023-02-23 11:13:10 UTC
Description of problem:
Program logs and error messages must be written to fd 2 (i.e. stderr), and the actual output to fd 1 (i.e. stdout). Doing anything else makes it very hard to use the program in a pipeline. dnf5 repoquery writes log messages to stdout.

$ dnf5 repoquery 2>/dev/null | grep Repositories
Repositories loaded.

"Repositories loaded." is obviously not a package name.

Version-Release number of selected component (if applicable):
dnf5-5.0.6-1.fc39.x86_64

Comment 1 Fedora Release Engineering 2023-08-16 07:10:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


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