[commit: Cabal] master: Only look at global packages when doing ./bootstrap.sh --global (30a3626)
Ian Lynagh
igloo at earth.li
Fri Jun 24 02:08:09 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/30a36269d3367b2e514c5998b48364aeaf8f8c08
>---------------------------------------------------------------
commit 30a36269d3367b2e514c5998b48364aeaf8f8c08
Author: Duncan Coutts <duncan at community.haskell.org>
Date: Sun Feb 27 15:26:37 2011 +0000
Only look at global packages when doing ./bootstrap.sh --global
Should fix ticket #796
>---------------------------------------------------------------
cabal-install/bootstrap.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cabal-install/bootstrap.sh b/cabal-install/bootstrap.sh
index ddcb1a3..81821cb 100644
--- a/cabal-install/bootstrap.sh
+++ b/cabal-install/bootstrap.sh
@@ -78,7 +78,7 @@ GHC_PKG_VER=`${GHC_PKG} --version | cut -d' ' -f 5`
# Cache the list of packages:
echo "Checking installed packages for ghc-${GHC_VER}..."
-${GHC_PKG} list > ghc-pkg.list \
+${GHC_PKG} list --global ${SCOPE_OF_INSTALLATION} > ghc-pkg.list \
|| die "running '${GHC_PKG} list' failed"
# Will we need to install this package, or is a suitable version installed?
More information about the Cvs-libraries
mailing list