[commit: Cabal] master: Improve 'cabal info pkg' message when there is nothing to install (9076143)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:48:55 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/9076143a0fddaaf36cd0e7251b5441bdeb73247e
>---------------------------------------------------------------
commit 9076143a0fddaaf36cd0e7251b5441bdeb73247e
Author: Duncan Coutts <duncan at haskell.org>
Date: Tue Dec 18 00:47:24 2007 +0000
Improve 'cabal info pkg' message when there is nothing to install
"All requested packages already installed. Nothing to do."
rather than:
"These packages would be installed:\n"
followed by ... nothing.
>---------------------------------------------------------------
cabal-install/Hackage/Info.hs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/cabal-install/Hackage/Info.hs b/cabal-install/Hackage/Info.hs
index 50cda30..9e66538 100644
--- a/cabal-install/Hackage/Info.hs
+++ b/cabal-install/Hackage/Info.hs
@@ -36,6 +36,9 @@ info cfg comp conf deps
"The requested packages cannot be installed, because of missing dependencies:\n"
++ showDependencies missing
+ Right [] -> notice verbosity $
+ "All requested packages already installed. Nothing to do."
+
Right pkgs -> notice verbosity $
"These packages would be installed:\n"
++ unlines [showPackageId (pkgInfoId pkg) | (pkg,_) <- pkgs]
More information about the Cvs-libraries
mailing list