[commit: Cabal] master: Fix "cabal list" with no package specified (e64ace1)
Paolo Capriotti
p.capriotti at gmail.com
Mon May 7 23:58:35 CEST 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/e64ace1aa052675aec8acac3e98663118b4ec65d
>---------------------------------------------------------------
commit e64ace1aa052675aec8acac3e98663118b4ec65d
Author: Duncan Coutts <duncan at haskell.org>
Date: Sat Jan 19 15:52:19 2008 +0000
Fix "cabal list" with no package specified
>---------------------------------------------------------------
cabal-install/Hackage/List.hs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cabal-install/Hackage/List.hs b/cabal-install/Hackage/List.hs
index 8303b68..d3f93d2 100644
--- a/cabal-install/Hackage/List.hs
+++ b/cabal-install/Hackage/List.hs
@@ -31,7 +31,7 @@ list :: Verbosity -> [Repo] -> [String] -> IO ()
list verbosity repos pats = do
indexes <- mapM (RepoIndex.read verbosity) repos
let index = mconcat indexes
- pkgs | null pats = pkgs
+ pkgs | null pats = RepoIndex.allPackages index
| otherwise =
concatMap (RepoIndex.lookupPackageNameSubstring index) pats
putStrLn
More information about the Cvs-libraries
mailing list