Ticket #2873 (closed merge: fixed)

Opened 4 years ago

Last modified 4 years ago

ghc-pkg list/dump --package-conf=missing returns successful error code

Reported by: duncan Owned by: igloo
Priority: normal Milestone: 6.10.2
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

If the user supplies a missing package file then ghc-pkg should return a non-0 exit code to indicate failure.

$ ghc-pkg list --package-conf=missing
missing:

(I note that we need a trac component for "Package system" tickets.)

Change History

Changed 4 years ago by duncan

The same goes for --global-conf= I expect they share the same code path.

Changed 4 years ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • milestone set to 6.10.2

Changed 4 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge

Fixed:

Thu Jan  8 09:56:28 GMT 2009  Simon Marlow <marlowsd@gmail.com>
  * Fix #2873: should fail if a package DB desn't exist
  We allowed non-existence before because the user DB is allowed to not
  exist, so now we have an explicit exception for that case.

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.