haskell/cabal — pull request #1018 by soenkehahn (2012-08-28 13:15:07+00:00)
Title: fixed crash when printing latest versions with 'cabal install'

A recent patch introduced the feature that 'cabal install --dry-run' would print latest version numbers for packages to be installed. This failed if the package that was installed (the actual target, not a dep) wasn't uploaded to hackage:

cabal: Prelude.last: empty list

This patch fixes this.

(This is my first patch to cabal. If I did violate some coding or other guidelines, please tell me!)