Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always cache the list of installed packages.

The list of installed packages should always be cached, even when
installing on an unsupported version of GHC.
  • Loading branch information...
commit 0416cc9109f1e8e9e8e37f9f58c07e1fa4e340ba 1 parent 3ef3548
Geoffrey Mainland authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/generic/tarball/configure.ac
View
6 src/generic/tarball/configure.ac
@@ -163,9 +163,6 @@ TRY_COMPILE_GHC([main = print "Hello world!"],,
[(On Debian-based systems this package is called libgmp3-dev.)]))
AC_MSG_RESULT([yes])
-
-if test "${ALLOW_UNSUPPORTED_GHC}" = "NO"; then
-AC_MSG_CHECKING([the ghc core packages are all installed])
# Cache the list of packages:
# This sets up our initial environment, and we include both global and
# user packages if it is a ${USER_INSTALL} install
@@ -175,6 +172,9 @@ else
echo " ` ${GHC_PKG} list --simple-output --global ` " > packages/installed.packages
fi
+if test "${ALLOW_UNSUPPORTED_GHC}" = "NO"; then
+AC_MSG_CHECKING([the ghc core packages are all installed])
+
# Is this exact version of the package already installed?
is_pkg_installed () {
PKG_VER=$1
Please sign in to comment.
Something went wrong with that request. Please try again.