[commit: Cabal] master: Fix "cabal list" with no package specified (1d7b077)
Ian Lynagh
igloo at earth.li
Fri Jun 24 01:50:05 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/1d7b077397d19a7cef46cf5d967bb9a339ac76c9
>---------------------------------------------------------------
commit 1d7b077397d19a7cef46cf5d967bb9a339ac76c9
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