Ticket #3818 (closed bug: fixed)

Opened 3 years ago

Last modified 15 months ago

ghc-pkg prints warnings to stdout instead of stderr

Reported by: nomeata Owned by: igloo
Priority: normal Milestone: 7.6.1
Component: Package system Version: 6.12.1
Keywords: Cc: dterei
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The warning

WARNING: cache is out of date: /var/lib/ghc-6.12.1/package.conf.d/package.cache
  use 'ghc-pkg recache' to fix.

is printed to stdout, which breaks scripts. It should be printed to stderr instead.

Change History

Changed 3 years ago by igloo

  • milestone set to 6.14.1

There is quite a mix of stderr/stdout. This really needs a policy to be decided, and a sweep over all the prints to be done.

Changed 2 years ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

Changed 2 years ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

Changed 2 years ago by dterei

  • cc dterei added

Changed 20 months ago by igloo

  • owner set to igloo
  • milestone changed from 7.2.1 to 7.6.1

Changed 15 months ago by p.capriotti@…

commit d6b1050d7e5db5a196a50bf3ad34ce310cb2387e

Author: Paolo Capriotti <p.capriotti@gmail.com>
Date:   Wed Mar 7 18:40:44 2012 +0000

    ghc-pkg: make sure info messages go to stdout and errors to stderr (#3818)

 utils/ghc-pkg/Main.hs |   70 ++++++++++++++++++++++++++++---------------------
 1 files changed, 40 insertions(+), 30 deletions(-)

Changed 15 months ago by pcapriotti

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to fixed
Note: See TracTickets for help on using tickets.