haskell/cabal — pull request #1491 by rwbarton (2013-09-08 22:17:08+00:00)
Title: "cabal get --source-repository" fails under ghc 7.7 when a brancher is missing

The behavior of readProcessWithExitCode changed a few months ago: now it raises an exception if the command to be run doesn't exist (or couldn't be started for some other reason). This means that if the user doesn't have bzr installed, for example, "cabal get -s" will always fail, even when it would have cloned, say, a git repository.

This commit catches such exceptions and marks the corresponding launcher as not usable.