Commit 1c33dca7 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Only look at global packages when doing ./ --global

Should fix ticket #796
parent 9b53129b
......@@ -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?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment