Bug 1232535

Summary: Last metadata expiration date printed on stdout instead of stderr
Product: [Fedora] Fedora Reporter: Daniel Miranda <danielkza2>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: jsilhan, mluscon, packaging-team-maint, pnemade, ppisar, rholy, tim.lauridsen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-01 08:54:26 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:

Description Daniel Miranda 2015-06-17 01:23:05 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Daniel Miranda 2015-06-17 01:26:33 UTC
Apologies, my browser acted out and I submitted accidentally.

# Description of problem:

DNF prints descriptive message about last metadata check performed in stdout, instead of stderr, making non-interactive usage of commands, like repoquery, harder.


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

dnf-0:1.0.0-1.fc22

How reproducible:

Always

Steps to Reproduce:

Run `dnf repoquery 2>/dev/null --requires perl`

Actual results:

Messages are still printed on stdout

Expected results:

All informative messages that are not parse-able content should be printed on stderr.

Comment 2 Daniel Miranda 2015-06-17 01:27:46 UTC
Apologies again, but the command should be `dnf repoquery --requires perl 2>/dev/null`.

Comment 3 Radek Holy 2015-06-17 08:22:20 UTC
I had the same idea. It was said to me that I should use "dnf -q repoquery ...".

Comment 4 Honza Silhan 2015-07-01 08:54:26 UTC
Closing. In scripts to parse raw output use `--quiet` option.

Comment 5 Radek Holy 2015-07-21 12:02:43 UTC
*** Bug 1208592 has been marked as a duplicate of this bug. ***